From 0269c4be444f52be2294134804dc7d64b98ff4af Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Mon, 4 Mar 2024 18:00:14 -0800 Subject: [PATCH] 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 --- code/modules/admin/holder2.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/admin/holder2.dm b/code/modules/admin/holder2.dm index e98016df74f..9d2525ed8fa 100644 --- a/code/modules/admin/holder2.dm +++ b/code/modules/admin/holder2.dm @@ -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)