Compare commits

..

1 Commits

Author SHA1 Message Date
00619cbd05
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:35:27 +02:00

View File

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