dont try to decode a decoded string

This commit is contained in:
Egg 2024-10-09 10:02:27 +02:00
parent c7b34259eb
commit 2c9b47f08d

4
db.py
View file

@ -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):