change(fastapi): no longer care about ResetKey collisions

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-12-03 15:41:54 -08:00
parent b0b5e4c9d1
commit aa717a4ef9
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
2 changed files with 6 additions and 6 deletions

View file

@ -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)