From 64e6a57ca63e10539e00a0f6a9ed8d749fdcab2d Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Mon, 31 Oct 2022 15:09:28 +0100 Subject: [PATCH] [MIRROR] Fix admin 2fa not syncing authorized admins to the player table in the db. [MDB IGNORE] (#17262) * Fix admin 2fa not syncing authorized admins to the player table in the db. (#70910) * Fix admin 2fa not syncing authorized admins. * make it a bit more clear what this code does, since the if wording is misleading. * Fix admin 2fa not syncing authorized admins to the player table in the db. Co-authored-by: Kyle Spier-Swenson --- code/modules/admin/holder2.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/admin/holder2.dm b/code/modules/admin/holder2.dm index 6dc0d0aaedf..89ec19d7158 100644 --- a/code/modules/admin/holder2.dm +++ b/code/modules/admin/holder2.dm @@ -139,7 +139,8 @@ GLOBAL_PROTECT(href_token) return else if (blocked_by_2fa) - sync_lastadminrank(client.ckey, client.key) + //previously blocked by 2fa but has now verified, sync the lastadminrank column on the player table. + sync_lastadminrank(client.ckey, client.key, src) blocked_by_2fa = FALSE