Guest User

Untitled

a guest
Nov 17th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. if ($phonesManager->checkIfPhoneExist($phone)) {
  2. if (isset($context[$this->_codeKey])) $verification_code = $context[$this->_verificationCodeKey];
  3. $check_if_phone_exist_error = true;
  4. if($verification_code) {
  5. $codeInfo = $phonesManager->getCheckPhonesCodeInfo(0, $phone);
  6. if($codeInfo && $codeInfo['code'] == $verification_code) $check_if_phone_exist_error = false;
  7. }
  8. if ($check_if_phone_exist_error) {
  9. $this->_error(self::PHONE_ALREADY_EXISTS);
  10. return false;
  11. }
  12. }
Add Comment
Please, Sign In to add comment