cuntry code
This commit is contained in:
@@ -50,7 +50,7 @@ class RegisterService(BaseService):
|
|||||||
"last_update": datetime.datetime.utcnow(),
|
"last_update": datetime.datetime.utcnow(),
|
||||||
"list": [
|
"list": [
|
||||||
{"code": "US", "description": "United States"},
|
{"code": "US", "description": "United States"},
|
||||||
{"code": "NG", "description": "Nigeria"},
|
{"code": "CA", "description": "Canada"},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -151,8 +151,16 @@ class RegisterService(BaseService):
|
|||||||
|
|
||||||
|
|
||||||
def send_register_mail(signup_email, email_uid,last_row_id,firstname):
|
def send_register_mail(signup_email, email_uid,last_row_id,firstname):
|
||||||
|
|
||||||
|
pending_member = {
|
||||||
|
"email": signup_email,
|
||||||
|
"uid": email_uid,
|
||||||
|
"first_name": firstname,
|
||||||
|
"last_name": signup_email,
|
||||||
|
"member_id":last_row_id,
|
||||||
|
}
|
||||||
jwt_part = jwt.encode(
|
jwt_part = jwt.encode(
|
||||||
{"user": email_uid, 'exp' : datetime.datetime.utcnow() + datetime.timedelta(minutes=3330)},
|
{"user": pending_member, 'exp' : datetime.datetime.utcnow() + datetime.timedelta(minutes=3330)},
|
||||||
RegisterService.JWT_SECRET_KEY, algorithm='HS256'
|
RegisterService.JWT_SECRET_KEY, algorithm='HS256'
|
||||||
)
|
)
|
||||||
panel_url = "https://qa-panel.mermsemr.com"
|
panel_url = "https://qa-panel.mermsemr.com"
|
||||||
|
|||||||
Reference in New Issue
Block a user