Merge pull request #22 from wulkanowy/feature/account_manager
Fix fixa fixa
This commit is contained in:
commit
f05fea031b
1 changed files with 2 additions and 1 deletions
|
@ -41,12 +41,13 @@ def login(request, *args, **kwargs):
|
|||
else:
|
||||
while True:
|
||||
try:
|
||||
request.session[request.session.session_key] = Fernet.generate_key().decode('utf-8')
|
||||
rkey = Fernet(bytes(request.session[request.session.session_key], 'utf-8'))
|
||||
print(bytes(request.session[request.session.session_key], 'utf-8'))
|
||||
break
|
||||
except KeyError:
|
||||
continue
|
||||
|
||||
|
||||
sender_return['s'] = json.dumps(sender_return['s'])
|
||||
sender_return['s'] = sender_return['s'].encode()
|
||||
sender_return['s'] = rkey.encrypt(sender_return['s'])
|
||||
|
|
Loading…
Reference in a new issue