We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd02e90 commit 12deed6Copy full SHA for 12deed6
interface/web/login/otp.php
@@ -48,7 +48,7 @@
48
$msg = '';
49
$max_session_code_retry = 3;
50
$max_global_code_retry = 10;
51
-
+$otp_recovery_code_length = 32;
52
53
//* CSRF Check if we got POST data
54
if(count($_POST) >= 1) {
@@ -61,7 +61,7 @@
61
62
63
//* Handle recovery code
64
-if(isset($_POST['code']) && strlen($_POST['code']) == 32 && $_SESSION['otp']['recovery']) {
+if(isset($_POST['code']) && strlen($_POST['code']) == $otp_recovery_code_length && $_SESSION['otp']['recovery']) {
65
//* TODO Recovery code handling
66
67
$user = $app->db->queryOneRecord('SELECT otp_attempts FROM sys_user WHERE userid = ?',$_SESSION['s_pending']['user']['userid']);
0 commit comments