[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:
SkyratBot
2024-03-05 23:39:28 +01:00
committed by GitHub
parent baca931f7f
commit b4e80a6bed
+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)