Skip to content
Snippets Groups Projects
Verified Commit 87882cc2 authored by nd's avatar nd
Browse files

do not accept passwords with > 256 characters

parent ffd34c35
No related branches found
No related tags found
No related merge requests found
......@@ -119,7 +119,7 @@ class User():
return True
def set_password(self, value):
if len(value) < 8:
if len(value) < 8 or len(value) > 256:
return False
self.newpassword = value
return True
......
......@@ -62,7 +62,7 @@
<input type="password" class="form-control" id="user-password" name="password" placeholder="mail to set it will be sent" readonly>
{% endif %}
<small class="form-text text-muted">
At least 8 characters, no other special requirements. But please don't be stupid and use a password manager.
At least 8 and at most 256 characters, no other special requirements. But please don't be stupid and use a password manager.
</small>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment