Show More
@@ -301,8 +301,8 b' class UserModel(object):' | |||||
301 | guaranteed not to occur in any of the values. |
|
301 | guaranteed not to occur in any of the values. | |
302 | """ |
|
302 | """ | |
303 | app_secret = config.get('app_instance_uuid') |
|
303 | app_secret = config.get('app_instance_uuid') | |
304 |
return hmac. |
|
304 | return hmac.new( | |
305 |
|
|
305 | '\0'.join([app_secret, user.password]).encode('utf-8'), | |
306 | msg='\0'.join([session_id, str(user.user_id), user.email, str(timestamp)]).encode('utf-8'), |
|
306 | msg='\0'.join([session_id, str(user.user_id), user.email, str(timestamp)]).encode('utf-8'), | |
307 | digestmod=hashlib.sha1, |
|
307 | digestmod=hashlib.sha1, | |
308 | ).hexdigest() |
|
308 | ).hexdigest() |
General Comments 0
You need to be logged in to leave comments.
Login now