mirror of
https://github.com/cwinfo/envayasms.git
synced 2025-06-26 02:39:23 +00:00
set phone number and api version as regular post fields instead of custom http headers
This commit is contained in:
@ -18,7 +18,7 @@ class KalSMS
|
||||
|
||||
static function new_from_request()
|
||||
{
|
||||
$version = @$_SERVER['HTTP_X_KALSMS_VERSION'];
|
||||
$version = @$_POST['version'];
|
||||
|
||||
return new KalSMS();
|
||||
}
|
||||
@ -56,7 +56,7 @@ class KalSMS
|
||||
|
||||
function get_request_phone_number()
|
||||
{
|
||||
return @$_SERVER['HTTP_X_KALSMS_PHONENUMBER'];
|
||||
return @$_POST['phone_number'];
|
||||
}
|
||||
|
||||
function is_validated_request($correct_password)
|
||||
|
Reference in New Issue
Block a user