forked from ticketfrei/ticketfrei
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(
|
'passhash': scrypt_mcf(
|
||||||
password.encode('utf-8')
|
password.encode('utf-8')
|
||||||
).decode('ascii')
|
).decode('ascii')
|
||||||
}, self.get_secret()).decode('ascii')
|
}, self.get_secret())
|
||||||
|
|
||||||
def mail_subscription_token(self, email, city):
|
def mail_subscription_token(self, email, city):
|
||||||
"""
|
"""
|
||||||
|
|
@ -216,7 +216,7 @@ class DB(object):
|
||||||
token = jwt.encode({
|
token = jwt.encode({
|
||||||
'email': email,
|
'email': email,
|
||||||
'city': city
|
'city': city
|
||||||
}, self.get_secret()).decode('ascii')
|
}, self.get_secret())
|
||||||
return token
|
return token
|
||||||
|
|
||||||
def confirm_subscription(self, token):
|
def confirm_subscription(self, token):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue