Skip to content

Commit

Permalink
fixes finnicky code (mfa)
Browse files Browse the repository at this point in the history
  • Loading branch information
Djiq committed Oct 3, 2022
1 parent b77045b commit 0eedc79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/admin/mfa.dm
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
var/code = input(src, "Please enter your authentication code", "MFA Check") as null|num

if(code)
var/json_codes = rustg_hash_generate_totp_tolerance(seed, 1)
var/json_codes = rustg_hash_generate_totp_tolerance(seed, "1")
if(findtext(json_codes, "ERROR") != 0) // Something went wrong, exit
var/msg = "Error with TOTP: [json_codes]"
message_admins(msg)
Expand Down

0 comments on commit 0eedc79

Please sign in to comment.