Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($phonesManager->checkIfPhoneExist($phone)) {
- if (isset($context[$this->_codeKey])) $verification_code = $context[$this->_verificationCodeKey];
- $check_if_phone_exist_error = true;
- if($verification_code) {
- $codeInfo = $phonesManager->getCheckPhonesCodeInfo(0, $phone);
- if($codeInfo && $codeInfo['code'] == $verification_code) $check_if_phone_exist_error = false;
- }
- if ($check_if_phone_exist_error) {
- $this->_error(self::PHONE_ALREADY_EXISTS);
- return false;
- }
- }
Add Comment
Please, Sign In to add comment