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
|
// Strip symbols for Nabeh endpoint
|
||||||
$phoneRaw = preg_replace('/\D+/', '', $receiver);
|
$phoneRaw = preg_replace('/\D+/', '', $receiver);
|
||||||
|
|
||||||
// Map method/type (Image OTP is the default and only media method allowed)
|
// Map method/type (Text OTP is the default now)
|
||||||
$type = 'image';
|
|
||||||
if ($method === 'text') {
|
|
||||||
$type = 'text';
|
$type = 'text';
|
||||||
} elseif ($method === 'image') {
|
if ($method === 'image') {
|
||||||
$type = 'image';
|
$type = 'image';
|
||||||
|
} elseif ($method === 'text') {
|
||||||
|
$type = 'text';
|
||||||
} else {
|
} else {
|
||||||
// If no method specified or if 'voice' was requested, force default to 'image'
|
// If no method specified or if 'voice' was requested, force default to 'text'
|
||||||
$type = 'image';
|
$type = 'text';
|
||||||
}
|
}
|
||||||
|
|
||||||
$appName = 'سيرو رايدر';
|
$appName = 'سيرو رايدر';
|
||||||
|
|||||||
Reference in New Issue
Block a user