Compare commits

..

1 Commits

Author SHA1 Message Date
a850a526e6
fix db error on second login
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2021-06-22 17:38:36 +02:00

View File

@ -24,7 +24,7 @@ def auth(username, password):
if user is None: if user is None:
user = User(auth_id=username) user = User(auth_id=username)
db.session.add(user) db.session.add(user)
token = Token(token=str(uuid.uuid4()), user=user) token = Token(token=str(uuid.uuid4()), user=user)
db.session.add(token) db.session.add(token)
db.session.commit() db.session.commit()