fix(utils/token.py): Code review fix
https://g.codrs.ru/Hackaton/Backend/pulls/2#issuecomment-24
This commit is contained in:
+1
-1
@@ -3,5 +3,5 @@ import os
|
||||
|
||||
def generateKey(email, passwd):
|
||||
key = os.getenv('KEY')
|
||||
encoded = jwt.encode({f"{email}": f"{passwd}"}, key, algorithm="HS256")
|
||||
encoded = jwt.encode({email: passwd}, key, algorithm="HS256")
|
||||
return encoded
|
||||
|
||||
Reference in New Issue
Block a user