implement update profile endpoint

This commit is contained in:
2021-06-20 20:13:19 +02:00
parent 5c21e4c9b6
commit ace51851de
4 changed files with 68 additions and 3 deletions

View File

@ -22,7 +22,7 @@ def auth(username, password):
user = User.query.filter(User.auth_id.__eq__(username)).first()
if user is None:
user = User(nickname=username, auth_id=username)
user = User(auth_id=username)
db.session.add(user)
token = Token(token=str(uuid.uuid4()), user=user)