From e6738e097324b950021be5244a1c05fdba67e447 Mon Sep 17 00:00:00 2001 From: Iajret Creature <122297233+Steals-The-PRs@users.noreply.github.com> Date: Wed, 6 Mar 2024 21:32:19 +0300 Subject: [PATCH] [MIRROR] Protected admins can skip 2fa if the db is down. (#2266) * 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 <154629622+NovaBot13@users.noreply.github.com> Co-authored-by: Kyle Spier-Swenson 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)