diff --git a/client/src/app/main/main-home/main-home-page-login-widget.js b/client/src/app/main/main-home/main-home-page-login-widget.js index d0d044f0..49278f78 100644 --- a/client/src/app/main/main-home/main-home-page-login-widget.js +++ b/client/src/app/main/main-home/main-home-page-login-widget.js @@ -33,7 +33,7 @@ class MainHomePageLoginWidget extends React.Component { loadingLogin: false, loadingRecover: false, reSendEMailVerificationLoading: false, - reSendEmailVerificationStep: 0, + reSendEmailVerificationStep: UNVERIFIED_USER_STEP, reSendEmailVerificationMessage: "" }; @@ -90,7 +90,7 @@ class MainHomePageLoginWidget extends React.Component { case REQUEST_RESULT_STEP: return ( - (this.state.emailVerificationMessage === "success") ? + (this.state.reSendEmailVerificationMessage === "success") ? {i18n('RESEND_EMAIL_VERIFICATION_SUCCESS')} : @@ -236,12 +236,12 @@ class MainHomePageLoginWidget extends React.Component { }).then(() => { this.setState({ reSendEmailVerificationStep: REQUEST_RESULT_STEP, - reSendEMailVerificationMessage: 'success' + reSendEmailVerificationMessage: 'success' }) }).catch(() => { this.setState({ reSendEmailVerificationStep: REQUEST_RESULT_STEP, - reSendEMailVerificationMessage: 'error' + reSendEmailVerificationMessage: 'error' }) }); } diff --git a/server/controllers/user/login.php b/server/controllers/user/login.php index b853e504..4d49716c 100755 --- a/server/controllers/user/login.php +++ b/server/controllers/user/login.php @@ -49,7 +49,7 @@ class LoginController extends Controller { public function handler() { $this->clearOldRememberTokens(); - + if ($this->checkInputCredentials() || $this->checkRememberToken()) { if($this->userInstance->verificationToken !== null) { throw new RequestException(ERRORS::UNVERIFIED_USER);