Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Georgios Dagkakis
erp5
Commits
cd6ff527
Commit
cd6ff527
authored
Oct 24, 2016
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5: minor simplification of login_account_provider.isPasswordValid
parent
fc796e1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
product/ERP5/mixin/login_account_provider.py
product/ERP5/mixin/login_account_provider.py
+1
-4
No files found.
product/ERP5/mixin/login_account_provider.py
View file @
cd6ff527
...
@@ -83,10 +83,7 @@ class LoginAccountProviderMixin:
...
@@ -83,10 +83,7 @@ class LoginAccountProviderMixin:
"""
"""
Is password valid?
Is password valid?
"""
"""
result_code_list
=
self
.
analyzePassword
(
password
,
**
kw
)
return
not
len
(
self
.
analyzePassword
(
password
,
**
kw
))
if
not
len
(
result_code_list
):
return
True
return
False
security
.
declareProtected
(
Permissions
.
SetOwnPassword
,
'analyzePassword'
)
security
.
declareProtected
(
Permissions
.
SetOwnPassword
,
'analyzePassword'
)
def
analyzePassword
(
self
,
password
,
**
kw
):
def
analyzePassword
(
self
,
password
,
**
kw
):
...
...
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