mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-14 15:08:34 +02:00
When forgot password, tell to wait for n seconds before resend
This commit is contained in:
parent
4567f82a06
commit
aa1ef2c41c
2 changed files with 3 additions and 1 deletions
|
@ -98,6 +98,7 @@ a.n Ibnu Maksum
|
|||
|
||||
## SPONSORS
|
||||
|
||||
- [mixradius.com](https://mixradius.com/) Paid Services Billing Radius
|
||||
- [mlink.id](https://mlink.id)
|
||||
- [https://github.com/sonyinside](https://github.com/sonyinside)
|
||||
|
||||
|
|
|
@ -30,8 +30,9 @@ if ($step == 1) {
|
|||
if ($user) {
|
||||
$otpPath .= sha1($username . $db_pass) . ".txt";
|
||||
if (file_exists($otpPath) && time() - filemtime($otpPath) < 600) {
|
||||
$sec = time() - filemtime($otpPath);
|
||||
$ui->assign('notify_t', 's');
|
||||
$ui->assign('notify', Lang::T("If your Username is found, Verification Code has been Sent to Your Phone/Email/Whatsapp"));
|
||||
$ui->assign('notify', Lang::T("Verification Code already Sent to Your Phone/Email/Whatsapp, please wait")." $sec seconds.");
|
||||
} else {
|
||||
$via = $config['user_notification_reminder'];
|
||||
if ($via == 'email') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue