diff --git a/app/code/Magento/User/Model/User.php b/app/code/Magento/User/Model/User.php index 744fae46c3897..117e9425be7d2 100644 --- a/app/code/Magento/User/Model/User.php +++ b/app/code/Magento/User/Model/User.php @@ -470,7 +470,9 @@ public function verifyIdentity($password) $result = false; if ($this->_encryptor->validateHash($password, $this->getPassword())) { if ($this->getIsActive() != '1') { - throw new AuthenticationException(__('This account is inactive.')); + throw new AuthenticationException( + __('You did not sign in correctly or your account is temporarily disabled.') + ); } if (!$this->hasAssigned2Role($this->getId())) { throw new AuthenticationException(__('You need more permissions to access this.')); diff --git a/app/code/Magento/User/Test/Unit/Model/UserTest.php b/app/code/Magento/User/Test/Unit/Model/UserTest.php index 33a77515ccb0b..05e2f75ad8be1 100644 --- a/app/code/Magento/User/Test/Unit/Model/UserTest.php +++ b/app/code/Magento/User/Test/Unit/Model/UserTest.php @@ -364,7 +364,7 @@ public function testVerifyIdentityInactiveRecord() $this->_model->setIsActive(false); $this->setExpectedException( 'Magento\\Framework\\Exception\\AuthenticationException', - 'This account is inactive.' + 'You did not sign in correctly or your account is temporarily disabled.' ); $this->_model->verifyIdentity($password); } diff --git a/app/code/Magento/User/i18n/de_DE.csv b/app/code/Magento/User/i18n/de_DE.csv index 7168308c5dcf0..3f27379d04352 100644 --- a/app/code/Magento/User/i18n/de_DE.csv +++ b/app/code/Magento/User/i18n/de_DE.csv @@ -85,7 +85,7 @@ Permissions,Permissions "Your password must be at least %1 characters.","Your password must be at least %1 characters." "Your password must include both numeric and alphabetic characters.","Your password must include both numeric and alphabetic characters." "Your password confirmation must match your password.","Your password confirmation must match your password." -"This account is inactive.","This account is inactive." +"You did not sign in correctly or your account is temporarily disabled.","You did not sign in correctly or your account is temporarily disabled." "Forgot your user name or password?","Forgot your user name or password?" "Retrieve Password","Retrieve Password" "Forgot your password?","Forgot your password?" diff --git a/app/code/Magento/User/i18n/en_US.csv b/app/code/Magento/User/i18n/en_US.csv index 7168308c5dcf0..3f27379d04352 100644 --- a/app/code/Magento/User/i18n/en_US.csv +++ b/app/code/Magento/User/i18n/en_US.csv @@ -85,7 +85,7 @@ Permissions,Permissions "Your password must be at least %1 characters.","Your password must be at least %1 characters." "Your password must include both numeric and alphabetic characters.","Your password must include both numeric and alphabetic characters." "Your password confirmation must match your password.","Your password confirmation must match your password." -"This account is inactive.","This account is inactive." +"You did not sign in correctly or your account is temporarily disabled.","You did not sign in correctly or your account is temporarily disabled." "Forgot your user name or password?","Forgot your user name or password?" "Retrieve Password","Retrieve Password" "Forgot your password?","Forgot your password?" diff --git a/app/code/Magento/User/i18n/es_ES.csv b/app/code/Magento/User/i18n/es_ES.csv index 7168308c5dcf0..3f27379d04352 100644 --- a/app/code/Magento/User/i18n/es_ES.csv +++ b/app/code/Magento/User/i18n/es_ES.csv @@ -85,7 +85,7 @@ Permissions,Permissions "Your password must be at least %1 characters.","Your password must be at least %1 characters." "Your password must include both numeric and alphabetic characters.","Your password must include both numeric and alphabetic characters." "Your password confirmation must match your password.","Your password confirmation must match your password." -"This account is inactive.","This account is inactive." +"You did not sign in correctly or your account is temporarily disabled.","You did not sign in correctly or your account is temporarily disabled." "Forgot your user name or password?","Forgot your user name or password?" "Retrieve Password","Retrieve Password" "Forgot your password?","Forgot your password?" diff --git a/app/code/Magento/User/i18n/fr_FR.csv b/app/code/Magento/User/i18n/fr_FR.csv index 7168308c5dcf0..3f27379d04352 100644 --- a/app/code/Magento/User/i18n/fr_FR.csv +++ b/app/code/Magento/User/i18n/fr_FR.csv @@ -85,7 +85,7 @@ Permissions,Permissions "Your password must be at least %1 characters.","Your password must be at least %1 characters." "Your password must include both numeric and alphabetic characters.","Your password must include both numeric and alphabetic characters." "Your password confirmation must match your password.","Your password confirmation must match your password." -"This account is inactive.","This account is inactive." +"You did not sign in correctly or your account is temporarily disabled.","You did not sign in correctly or your account is temporarily disabled." "Forgot your user name or password?","Forgot your user name or password?" "Retrieve Password","Retrieve Password" "Forgot your password?","Forgot your password?" diff --git a/app/code/Magento/User/i18n/nl_NL.csv b/app/code/Magento/User/i18n/nl_NL.csv index 7168308c5dcf0..3f27379d04352 100644 --- a/app/code/Magento/User/i18n/nl_NL.csv +++ b/app/code/Magento/User/i18n/nl_NL.csv @@ -85,7 +85,7 @@ Permissions,Permissions "Your password must be at least %1 characters.","Your password must be at least %1 characters." "Your password must include both numeric and alphabetic characters.","Your password must include both numeric and alphabetic characters." "Your password confirmation must match your password.","Your password confirmation must match your password." -"This account is inactive.","This account is inactive." +"You did not sign in correctly or your account is temporarily disabled.","You did not sign in correctly or your account is temporarily disabled." "Forgot your user name or password?","Forgot your user name or password?" "Retrieve Password","Retrieve Password" "Forgot your password?","Forgot your password?" diff --git a/app/code/Magento/User/i18n/pt_BR.csv b/app/code/Magento/User/i18n/pt_BR.csv index 7168308c5dcf0..3f27379d04352 100644 --- a/app/code/Magento/User/i18n/pt_BR.csv +++ b/app/code/Magento/User/i18n/pt_BR.csv @@ -85,7 +85,7 @@ Permissions,Permissions "Your password must be at least %1 characters.","Your password must be at least %1 characters." "Your password must include both numeric and alphabetic characters.","Your password must include both numeric and alphabetic characters." "Your password confirmation must match your password.","Your password confirmation must match your password." -"This account is inactive.","This account is inactive." +"You did not sign in correctly or your account is temporarily disabled.","You did not sign in correctly or your account is temporarily disabled." "Forgot your user name or password?","Forgot your user name or password?" "Retrieve Password","Retrieve Password" "Forgot your password?","Forgot your password?" diff --git a/app/code/Magento/User/i18n/zh_CN.csv b/app/code/Magento/User/i18n/zh_CN.csv index 7168308c5dcf0..3f27379d04352 100644 --- a/app/code/Magento/User/i18n/zh_CN.csv +++ b/app/code/Magento/User/i18n/zh_CN.csv @@ -85,7 +85,7 @@ Permissions,Permissions "Your password must be at least %1 characters.","Your password must be at least %1 characters." "Your password must include both numeric and alphabetic characters.","Your password must include both numeric and alphabetic characters." "Your password confirmation must match your password.","Your password confirmation must match your password." -"This account is inactive.","This account is inactive." +"You did not sign in correctly or your account is temporarily disabled.","You did not sign in correctly or your account is temporarily disabled." "Forgot your user name or password?","Forgot your user name or password?" "Retrieve Password","Retrieve Password" "Forgot your password?","Forgot your password?" diff --git a/app/code/Magento/User/view/adminhtml/templates/admin/resetforgottenpassword.phtml b/app/code/Magento/User/view/adminhtml/templates/admin/resetforgottenpassword.phtml index 2beb2b1a277ff..ba3d313a32886 100644 --- a/app/code/Magento/User/view/adminhtml/templates/admin/resetforgottenpassword.phtml +++ b/app/code/Magento/User/view/adminhtml/templates/admin/resetforgottenpassword.phtml @@ -8,7 +8,7 @@ ?> -