mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
change(fastapi): no longer care about ResetKey collisions
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
b0b5e4c9d1
commit
aa717a4ef9
2 changed files with 6 additions and 6 deletions
|
@ -15,7 +15,7 @@ import aurweb.config
|
|||
import aurweb.models.account_type
|
||||
import aurweb.schema
|
||||
|
||||
from aurweb import db, logging, schema
|
||||
from aurweb import db, logging, schema, util
|
||||
from aurweb.models.account_type import AccountType as _AccountType
|
||||
from aurweb.models.ban import is_banned
|
||||
from aurweb.models.declarative import Base
|
||||
|
@ -249,5 +249,5 @@ class User(Base):
|
|||
self.ID, str(self.AccountType), self.Username)
|
||||
|
||||
|
||||
def generate_unique_resetkey():
|
||||
return db.make_random_value(User, User.ResetKey, 32)
|
||||
def generate_resetkey():
|
||||
return util.make_random_string(32)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue