Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
acc_portal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Le Filament
Opération Auto-Consommation Collective
acc_portal
Commits
b8d2a96a
Commit
b8d2a96a
authored
2 years ago
by
Juliana
Browse files
Options
Downloads
Patches
Plain Diff
[FIX]Translate password fault
parent
c68f57e2
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
models/res_users.py
+5
-5
5 additions, 5 deletions
models/res_users.py
with
5 additions
and
5 deletions
models/res_users.py
+
5
−
5
View file @
b8d2a96a
...
@@ -14,28 +14,28 @@ class ResUsers(models.Model):
...
@@ -14,28 +14,28 @@ class ResUsers(models.Model):
if
company_id
.
password_lower
:
if
company_id
.
password_lower
:
message
.
append
(
message
.
append
(
_
(
_
(
"
\n
* Lettre minuscule (au moins %s caractère
s
)
"
"
\n
* Lettre minuscule (au moins %s caractère)
"
%
str
(
company_id
.
password_lower
)
%
str
(
company_id
.
password_lower
)
)
)
)
)
if
company_id
.
password_upper
:
if
company_id
.
password_upper
:
message
.
append
(
message
.
append
(
_
(
_
(
"
\n
* Lettre majuscule (au moins %s caractère
s
)
"
"
\n
* Lettre majuscule (au moins %s caractère)
"
%
str
(
company_id
.
password_upper
)
%
str
(
company_id
.
password_upper
)
)
)
)
)
if
company_id
.
password_numeric
:
if
company_id
.
password_numeric
:
message
.
append
(
message
.
append
(
_
(
_
(
"
\n
* Chiffre numérique (au moins %s caractère
s
)
"
"
\n
* Chiffre numérique (au moins %s caractère)
"
%
str
(
company_id
.
password_numeric
)
%
str
(
company_id
.
password_numeric
)
)
)
)
)
if
company_id
.
password_special
:
if
company_id
.
password_special
:
message
.
append
(
message
.
append
(
_
(
_
(
"
\n
* Caractère spécial (au moins % caractère
s
)
"
"
\n
* Caractère spécial (au moins %
s
caractère)
"
%
str
(
company_id
.
password_special
)
%
str
(
company_id
.
password_special
)
)
)
)
)
...
@@ -43,7 +43,7 @@ class ResUsers(models.Model):
...
@@ -43,7 +43,7 @@ class ResUsers(models.Model):
message
=
[
_
(
"
Doit contenir:
"
)]
+
message
message
=
[
_
(
"
Doit contenir:
"
)]
+
message
if
company_id
.
password_length
:
if
company_id
.
password_length
:
message
=
[
message
=
[
_
(
"
Le mot de passe doit contenir %d caractère
s
ou plus.
"
)
_
(
"
Le mot de passe doit contenir %d caractère ou plus.
"
)
%
company_id
.
password_length
%
company_id
.
password_length
]
+
message
]
+
message
return
"
\r
"
.
join
(
message
)
return
"
\r
"
.
join
(
message
)
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