diff --git a/system/controllers/register.php b/system/controllers/register.php index 8ebd8226..b535b7eb 100644 --- a/system/controllers/register.php +++ b/system/controllers/register.php @@ -51,7 +51,8 @@ switch ($do) { if(!empty($config['sms_url'])){ $otpPath .= sha1($username.$db_password).".txt"; run_hook('validate_otp'); #HOOK - if(file_exists($otpPath) && time()-filemtime($otpPath)>300){ + //expired 10 minutes + if(file_exists($otpPath) && time()-filemtime($otpPath)>1200){ unlink($otpPath); r2(U . 'register', 's', 'Verification code expired'); }else if(file_exists($otpPath)){ @@ -134,13 +135,14 @@ switch ($do) { touch($otpPath.'index.html'); } $otpPath .= sha1($username.$db_password).".txt"; - if(file_exists($otpPath) && time()-filemtime($otpPath)<120){ + //expired 10 minutes + if(file_exists($otpPath) && time()-filemtime($otpPath)<1200){ $ui->assign('username', $username); $ui->assign('notify', '