aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-01-04 11:23:43 +0100
committerJoas Schilling <coding@schilljs.com>2023-01-04 11:23:43 +0100
commitb4a29644ccfc1acafcfbdb8b7b887df1fe520166 (patch)
tree4725bc96a608f2430c267145232c5b9a42ab835e /core
parentce50acd9b2d7acb3f04fd7c7940e821cb3d76a71 (diff)
downloadnextcloud-server-b4a29644ccfc1acafcfbdb8b7b887df1fe520166.tar.gz
nextcloud-server-b4a29644ccfc1acafcfbdb8b7b887df1fe520166.zip
Add a const for the max user password length
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core')
-rw-r--r--core/Controller/LostController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/LostController.php b/core/Controller/LostController.php
index e7960dbcef5..6176e3cd5e5 100644
--- a/core/Controller/LostController.php
+++ b/core/Controller/LostController.php
@@ -240,7 +240,7 @@ class LostController extends Controller {
$this->eventDispatcher->dispatchTyped(new BeforePasswordResetEvent($user, $password));
\OC_Hook::emit('\OC\Core\LostPassword\Controller\LostController', 'pre_passwordReset', ['uid' => $userId, 'password' => $password]);
- if (strlen($password) > 469) {
+ if (strlen($password) > IUserManager::MAX_PASSWORD_LENGTH) {
throw new HintException('Password too long', $this->l10n->t('Password is too long. Maximum allowed length is 469 characters.'));
}