Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uffd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Luca (strifel)
uffd
Commits
87882cc2
Verified
Commit
87882cc2
authored
4 years ago
by
nd
Browse files
Options
Downloads
Patches
Plain Diff
do not accept passwords with > 256 characters
parent
ffd34c35
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
uffd/user/models.py
+1
-1
1 addition, 1 deletion
uffd/user/models.py
uffd/user/templates/user.html
+1
-1
1 addition, 1 deletion
uffd/user/templates/user.html
with
2 additions
and
2 deletions
uffd/user/models.py
+
1
−
1
View file @
87882cc2
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
uffd/user/templates/user.html
+
1
−
1
View file @
87882cc2
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment