mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-12 00:27:31 +01:00
[MIRROR] Protected admins can skip 2fa if the db is down. (#26751)
* Protected admins can skip 2fa if the db is down. (#81823) This is basically only admins inside of the .txt and for /tg/station, only includes heads like the headmins and headcoders --------- Co-authored-by: san7890 <the@ san7890.com> * Protected admins can skip 2fa if the db is down. --------- Co-authored-by: Kyle Spier-Swenson <kyleshome@gmail.com> Co-authored-by: san7890 <the@ san7890.com>
This commit is contained in:
@@ -232,7 +232,7 @@ GLOBAL_PROTECT(href_token)
|
||||
return VALID_2FA_CONNECTION
|
||||
|
||||
if (!SSdbcore.Connect())
|
||||
if (verify_backup_data(client))
|
||||
if (verify_backup_data(client) || (client.ckey in GLOB.protected_admins))
|
||||
return VALID_2FA_CONNECTION
|
||||
else
|
||||
return list(FALSE, null)
|
||||
|
||||
Reference in New Issue
Block a user