From d62624ef05e4a73f62f7c351de3a6ac46c990c18 Mon Sep 17 00:00:00 2001 From: forest2001 Date: Sat, 1 Jun 2024 15:49:43 +0100 Subject: [PATCH 1/3] biometrics --- code/modules/cm_marines/marines_consoles.dm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/modules/cm_marines/marines_consoles.dm b/code/modules/cm_marines/marines_consoles.dm index e02bb930d416..f501d5d0d4c8 100644 --- a/code/modules/cm_marines/marines_consoles.dm +++ b/code/modules/cm_marines/marines_consoles.dm @@ -28,6 +28,15 @@ visible_message("[SPAN_BOLD("[src]")] states, \"AUTH ERROR: Authority confirmation card is missing!\"") return FALSE + var/bio_fail = FALSE + if(!istype(id_card)) + bio_fail = TRUE + else if(!id_card.check_biometrics(user)) + bio_fail = TRUE + if(bio_fail) + to_chat(user, SPAN_WARNING("Biometrics failure! You require an authenticated ID card to perform this action!")) + return FALSE + if(check_access(id_card)) authenticated = TRUE visible_message("[SPAN_BOLD("[src]")] states, \"AUTH LOGIN: Welcome, [id_card.registered_name]. Access granted.\"") From 40be7ec64179be81b83599aae43e3296dc42ce23 Mon Sep 17 00:00:00 2001 From: forest2001 <41653574+realforest2001@users.noreply.github.com> Date: Sat, 1 Jun 2024 20:00:33 +0100 Subject: [PATCH 2/3] Update code/modules/cm_marines/marines_consoles.dm Co-authored-by: Vero <73014819+vero5123@users.noreply.github.com> --- code/modules/cm_marines/marines_consoles.dm | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/code/modules/cm_marines/marines_consoles.dm b/code/modules/cm_marines/marines_consoles.dm index f501d5d0d4c8..0d7b022c343f 100644 --- a/code/modules/cm_marines/marines_consoles.dm +++ b/code/modules/cm_marines/marines_consoles.dm @@ -28,13 +28,8 @@ visible_message("[SPAN_BOLD("[src]")] states, \"AUTH ERROR: Authority confirmation card is missing!\"") return FALSE - var/bio_fail = FALSE - if(!istype(id_card)) - bio_fail = TRUE - else if(!id_card.check_biometrics(user)) - bio_fail = TRUE - if(bio_fail) - to_chat(user, SPAN_WARNING("Biometrics failure! You require an authenticated ID card to perform this action!")) + if(!istype(id_card) || !id_card.check_biometrics(user)) + visible_message("[SPAN_BOLD("[src]")] states, \"AUTH ERROR: Biometrics failure! You require an authenticated ID card to perform this action!\"") return FALSE if(check_access(id_card)) From bd4cb158834dd9ddd6f55871133372fd7dbebf30 Mon Sep 17 00:00:00 2001 From: forest2001 Date: Sat, 1 Jun 2024 22:14:19 +0100 Subject: [PATCH 3/3] grr --- code/modules/cm_marines/marines_consoles.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/cm_marines/marines_consoles.dm b/code/modules/cm_marines/marines_consoles.dm index 0d7b022c343f..420b58de344e 100644 --- a/code/modules/cm_marines/marines_consoles.dm +++ b/code/modules/cm_marines/marines_consoles.dm @@ -29,7 +29,7 @@ return FALSE if(!istype(id_card) || !id_card.check_biometrics(user)) - visible_message("[SPAN_BOLD("[src]")] states, \"AUTH ERROR: Biometrics failure! You require an authenticated ID card to perform this action!\"") + visible_message("[SPAN_BOLD("[src]")] states, \"AUTH ERROR: Biometrics failure! You require an authenticated ID card to perform this action!\"") return FALSE if(check_access(id_card))