Compare commits
1 Commits
a850a526e6
...
00619cbd05
Author | SHA1 | Date | |
---|---|---|---|
00619cbd05 |
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user