summaryrefslogtreecommitdiffstats
path: root/apps/settings/templates
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-07-05 11:47:25 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-07-05 11:47:25 +0200
commitf99a06c89a116cbc447b5fb5d2ec27462b9fba51 (patch)
tree7d40b7a5cbe861549f4f024795b54ba716076207 /apps/settings/templates
parent1c23c029af1ef83935badb8b63cb4dffac59b1e4 (diff)
downloadnextcloud-server-f99a06c89a116cbc447b5fb5d2ec27462b9fba51.tar.gz
nextcloud-server-f99a06c89a116cbc447b5fb5d2ec27462b9fba51.zip
Don't allow setting password bigger than 469 characters
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/settings/templates')
-rw-r--r--apps/settings/templates/settings/personal/security/password.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/settings/templates/settings/personal/security/password.php b/apps/settings/templates/settings/personal/security/password.php
index 88536ab6b23..85959e252cc 100644
--- a/apps/settings/templates/settings/personal/security/password.php
+++ b/apps/settings/templates/settings/personal/security/password.php
@@ -46,6 +46,7 @@ if ($_['passwordChangeSupported']) {
<div class="personal-show-container">
<label for="pass2" class="hidden-visually"><?php p($l->t('New password'));?>: </label>
<input type="password" id="pass2" name="newpassword"
+ maxlength="469"
placeholder="<?php p($l->t('New password')); ?>"
data-typetoggle="#personal-show"
autocomplete="new-password" autocapitalize="none" autocorrect="off" />