mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(fastapi): fix SessionID (and ResetKey) generation
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
d658627e99
commit
47feb72f48
4 changed files with 12 additions and 35 deletions
|
@ -230,3 +230,7 @@ class User(Base):
|
|||
def __repr__(self):
|
||||
return "<User(ID='%s', AccountType='%s', Username='%s')>" % (
|
||||
self.ID, str(self.AccountType), self.Username)
|
||||
|
||||
|
||||
def generate_unique_resetkey():
|
||||
return db.make_random_value(User, User.ResetKey, 32)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue