[FIX] Better error message

Fixes #1664
This commit is contained in:
Sebastian Grewe 2014-02-06 10:51:00 +01:00
parent b05f87ab5d
commit 324bf05116

View File

@ -800,7 +800,7 @@ class User extends Base {
$this->setErrorMessage('Unable to invalidate used token');
}
} else {
$this->setErrorMessage('Unable to set new password');
$this->setErrorMessage('Unable to set new password or you chose the same password. Please use a different one.');
}
} else {
$this->setErrorMessage('Invalid token: ' . $this->token->getError());