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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
erp5
Commits
89b8e31c
Commit
89b8e31c
authored
Jul 27, 2011
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Notify password expire event and leave implementation (if any)
to respective iLoginAccountProvider implementation class.
parent
b9ab4468
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
product/ERP5Security/ERP5UserManager.py
product/ERP5Security/ERP5UserManager.py
+9
-4
No files found.
product/ERP5Security/ERP5UserManager.py
View file @
89b8e31c
...
...
@@ -150,7 +150,7 @@ class ERP5UserManager(BasePlugin):
assignment
.
getStopDate
()
<
login_date
:
continue
valid_assignment_list
.
append
(
assignment
)
if
pw_validate
(
user
.
getPassword
(),
password
)
and
\
len
(
valid_assignment_list
)
and
user
\
.
getValidationState
()
!=
'deleted'
:
#user.getCareerRole() == 'internal':
...
...
@@ -187,9 +187,14 @@ class ERP5UserManager(BasePlugin):
# file a failed authentication attempt
user
.
notifyLoginFailure
()
return
None
# check if user account is blocked and if password is expired or not
if
user
.
isLoginBlocked
()
or
user
.
isPasswordExpired
():
# check if password is expired
if
user
.
isPasswordExpired
():
user
.
notifyPasswordExpire
()
return
None
# check if user account is blocked
if
user
.
isLoginBlocked
():
return
None
return
authentication_result
...
...
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