Fix OTP verification success response payload and restore deterministic encryptData
This commit is contained in:
@@ -131,15 +131,15 @@ function sendNabehOtp(string $receiver, string $otp, string $method = '', string
|
||||
// Strip symbols for Nabeh endpoint
|
||||
$phoneRaw = preg_replace('/\D+/', '', $receiver);
|
||||
|
||||
// Map method/type (Image OTP is the default and only media method allowed)
|
||||
$type = 'image';
|
||||
if ($method === 'text') {
|
||||
// Map method/type (Text OTP is the default now)
|
||||
$type = 'text';
|
||||
if ($method === 'image') {
|
||||
$type = 'image';
|
||||
} elseif ($method === 'text') {
|
||||
$type = 'text';
|
||||
} elseif ($method === 'image') {
|
||||
$type = 'image';
|
||||
} else {
|
||||
// If no method specified or if 'voice' was requested, force default to 'image'
|
||||
$type = 'image';
|
||||
// If no method specified or if 'voice' was requested, force default to 'text'
|
||||
$type = 'text';
|
||||
}
|
||||
|
||||
$appName = 'سيرو رايدر';
|
||||
|
||||
Reference in New Issue
Block a user