Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.onVerifyCodeSubmit = function(e) {
- e.preventDefault();
- if (!!self.getCodeFromUserInput()) {
- window.verifyingCode = true;
- self.updateVerifyCodeButtonUI();//Обновляет состояние кнопки «Проверить код» в зависимости от состояния форм.
- var code = $("#loginform-password").val();
- confirmationResult.confirm(code)
- .then(function (result) {
- var user = result.user;
- window.verifyingCode = false;
- window.confirmationResult = null;
- self.updateVerificationCodeFormUI();
- }).catch(function (error) {
- console.log('Error while checking the verification code. Error code: ' + error.code);
- if(error.code == 'auth/invalid-verification-code') {console.log(error.code);}
- else {console.log(error.code);}
- window.verifyingCode = false;
- });
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement