Skip to content

Commit

Permalink
[MIRROR] Protected admins can skip 2fa if the db is down. (#2266)
Browse files Browse the repository at this point in the history
* 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

---------



* Protected admins can skip 2fa if the db is down.

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: Kyle Spier-Swenson <[email protected]>
Co-authored-by: san7890 <[email protected]>
  • Loading branch information
4 people authored Mar 6, 2024
1 parent f314c43 commit e6738e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/admin/holder2.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e6738e0

Please sign in to comment.