mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Do not request password till newPassword and newRePassword are valid
This commit is contained in:
@@ -34,7 +34,7 @@ class ChangePasswordForm extends PasswordProtectedForm {
|
||||
}
|
||||
|
||||
public function validatePasswordAndRePasswordMatch($attribute) {
|
||||
if (!$this->hasErrors()) {
|
||||
if (!$this->hasErrors($attribute)) {
|
||||
if ($this->newPassword !== $this->newRePassword) {
|
||||
$this->addError($attribute, 'error.newRePassword_does_not_match');
|
||||
}
|
||||
|
Reference in New Issue
Block a user