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>
This commit is contained in:
Kyle Spier-Swenson
2024-03-04 19:00:14 -07:00
committed by GitHub
co-authored by san7890
parent c011aa11cc
commit 0269c4be44
+1 -1
View File
@@ -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)