mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Move 2FA success message more human-readable and move it to debug printing
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
+2
-1
@@ -230,7 +230,8 @@ enum totp_status verifyTOTP(const uint32_t incode)
|
||||
i, gencode, (unsigned long)(RFC6238_X - (now % RFC6238_X)));
|
||||
return TOTP_REUSED;
|
||||
}
|
||||
log_info("2FA code verified successfully at %i", i);
|
||||
const char *which = i == -1 ? "previous" : i == 0 ? "current" : "next";
|
||||
log_debug(DEBUG_API, "2FA code from %s time step is valid", which);
|
||||
last_code = gencode;
|
||||
return TOTP_CORRECT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user