File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 105105 //* 2fa success
106106 if ($ _POST ['code ' ] == $ _SESSION ['otp ' ]['code ' ]) {
107107 $ _SESSION ['s ' ] = $ _SESSION ['s_pending ' ];
108+ // Reset the attempt counter.
109+ $ app ->db ->query ('UPDATE `sys_user` SET otp_attempts=0 WHERE userid = ? ' , $ _SESSION ['s ' ]['user ' ]['userid ' ]);
108110 unset($ _SESSION ['s_pending ' ]);
109111 unset($ _SESSION ['otp ' ]);
110112 header ('Location: ../index.php ' );
185187$ csrf_token = $ app ->auth ->csrf_token_get ('language_edit ' );
186188$ app ->tpl ->setVar ('_csrf_id ' ,$ csrf_token ['csrf_id ' ]);
187189$ app ->tpl ->setVar ('_csrf_key ' ,$ csrf_token ['csrf_key ' ]);
190+ #$app->tpl->setVar('msg', print_r($_SESSION['otp'], 1));
188191
189192
190193require ISPC_ROOT_PATH .'/web/login/lib/lang/ ' .$ app ->functions ->check_language ($ conf ['language ' ]).'.lng ' ;
You can’t perform that action at this time.
0 commit comments