dont try to decode a decoded string
This commit is contained in:
parent
c7b34259eb
commit
2c9b47f08d
4
db.py
4
db.py
|
@ -202,7 +202,7 @@ class DB(object):
|
|||
'passhash': scrypt_mcf(
|
||||
password.encode('utf-8')
|
||||
).decode('ascii')
|
||||
}, self.get_secret()).decode('ascii')
|
||||
}, self.get_secret())
|
||||
|
||||
def mail_subscription_token(self, email, city):
|
||||
"""
|
||||
|
@ -216,7 +216,7 @@ class DB(object):
|
|||
token = jwt.encode({
|
||||
'email': email,
|
||||
'city': city
|
||||
}, self.get_secret()).decode('ascii')
|
||||
}, self.get_secret())
|
||||
return token
|
||||
|
||||
def confirm_subscription(self, token):
|
||||
|
|
Loading…
Reference in a new issue