Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
intranet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nounous-archives
intranet
Commits
c980027b
Commit
c980027b
authored
Dec 15, 2015
by
Pierre-Elliott Bécue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrections de langue
parent
0c69e103
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pageperso/forms.py
pageperso/forms.py
+2
-2
No files found.
pageperso/forms.py
View file @
c980027b
...
...
@@ -29,10 +29,10 @@ class SqlPasswordForm(forms.Form):
def
clean_password
(
self
):
if
len
(
self
.
cleaned_data
[
"password"
])
<
8
:
raise
forms
.
ValidationError
(
"Le mot de passe doit faire au moins 8 caractères"
)
raise
forms
.
ValidationError
(
"Le mot de passe doit faire au moins 8 caractères
.
"
)
return
self
.
cleaned_data
[
"password"
]
def
clean
(
self
):
if
"password"
in
self
.
cleaned_data
:
if
self
.
cleaned_data
[
"password"
]
!=
self
.
cleaned_data
.
get
(
"password_confirmation"
):
raise
forms
.
ValidationError
(
"Les mots de passe
s ne sont pas identique
"
)
raise
forms
.
ValidationError
(
"Les mots de passe
ne sont pas identiques.
"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment