mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-28 13:58:24 +02:00
Update accounts.php
Fix OTP not sending bug
This commit is contained in:
parent
3bdf44ddbe
commit
07870d05ad
1 changed files with 3 additions and 3 deletions
|
@ -170,11 +170,11 @@ switch ($action) {
|
||||||
file_put_contents($otpFile, $otp);
|
file_put_contents($otpFile, $otp);
|
||||||
file_put_contents($phoneFile, $phone);
|
file_put_contents($phoneFile, $phone);
|
||||||
// send send OTP to user
|
// send send OTP to user
|
||||||
if ($_c['phone_otp_type'] === 'sms') {
|
if ($config['phone_otp_type'] === 'sms') {
|
||||||
Message::sendSMS($phone, $config['CompanyName'] . "\n Your Verification code is: $otp");
|
Message::sendSMS($phone, $config['CompanyName'] . "\n Your Verification code is: $otp");
|
||||||
} elseif ($_c['phone_otp_type'] === 'whatsapp') {
|
} elseif ($config['phone_otp_type'] === 'whatsapp') {
|
||||||
Message::sendWhatsapp($phone, $config['CompanyName'] . "\n Your Verification code is: $otp");
|
Message::sendWhatsapp($phone, $config['CompanyName'] . "\n Your Verification code is: $otp");
|
||||||
} elseif ($_c['phone_otp_type'] === 'both') {
|
} elseif ($config['phone_otp_type'] === 'both') {
|
||||||
Message::sendSMS($phone, $config['CompanyName'] . "\n Your Verification code is: $otp");
|
Message::sendSMS($phone, $config['CompanyName'] . "\n Your Verification code is: $otp");
|
||||||
Message::sendWhatsapp($phone, $config['CompanyName'] . "\n Your Verification code is: $otp");
|
Message::sendWhatsapp($phone, $config['CompanyName'] . "\n Your Verification code is: $otp");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue