Skip to content

Commit

Permalink
Staging release 3 for v24.15.0 (#2060)
Browse files Browse the repository at this point in the history
fix custom user authentication (#2059)
  • Loading branch information
sainak authored Apr 8, 2024
1 parent 3c76ac3 commit 8b9bd0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/authentication.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
from datetime import datetime

import jwt
import requests
Expand Down Expand Up @@ -151,7 +152,7 @@ def get_user(self, validated_token, facility):
user_type=User.TYPE_VALUE_MAP["Nurse"],
verified=True,
asset=asset_obj,
age=10,
date_of_birth=datetime.now().date(),
)
asset_user.save()
return asset_user
Expand Down Expand Up @@ -202,7 +203,7 @@ def get_user(self, validated_token):
phone_number="917777777777",
user_type=User.TYPE_VALUE_MAP["Volunteer"],
verified=True,
age=10,
date_of_birth=datetime.now().date(),
)
user.save()
return user
Expand Down

0 comments on commit 8b9bd0b

Please sign in to comment.