Cleanup related to phone country change

This commit is contained in:
Kijin Sung 2020-03-18 23:56:54 +09:00
parent 0e9ce525da
commit 1db4a9d752
9 changed files with 60 additions and 8 deletions

View file

@ -3366,12 +3366,12 @@ class memberController extends member
$phone_country_calling_code = preg_replace('/[^0-9]/', '', Rhymix\Framework\i18n::getCallingCodeByCountryCode($phone_country));
if (!$phone_country_calling_code)
{
return new BaseObject(-1, 'msg_invalid_phone_number');
return new BaseObject(-1, 'msg_invalid_phone_country');
}
}
else
{
return new BaseObject(-1, 'msg_invalid_phone_number');
return new BaseObject(-1, 'msg_invalid_phone_country');
}
if (!preg_match('/[0-9]{2,}/', $phone_number))