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
Xiaowu Zhang
erp5
Commits
522bd980
Commit
522bd980
authored
Jul 15, 2020
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: avoid raise error when change password
not user friendly
parent
a420cf43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/PasswordTool_changeUserPassword.py
...s/erp5_web_renderjs_ui/PasswordTool_changeUserPassword.py
+12
-0
No files found.
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/PasswordTool_changeUserPassword.py
View file @
522bd980
"""
"""
The method changeUserPassword ignore came_from if you are in the Web Site context.
The method changeUserPassword ignore came_from if you are in the Web Site context.
"""
"""
REQUEST
=
context
.
REQUEST
error_list
=
context
.
portal_password
.
analyzePassword
(
REQUEST
[
'password'
],
REQUEST
[
'password_key'
]
)
if
error_list
:
error_message
=
context
.
Base_translateString
(
"Password don't comply with policy: "
)
error_message
+=
", "
.
join
([
context
.
Base_translateString
(
i
.
message
)
for
i
in
error_list
])
return
REQUEST
.
RESPONSE
.
redirect
(
"%s/WebSite_viewResetPassword?reset_key=%s&portal_status_message=%s"
%
\
(
REQUEST
[
"came_from"
],
REQUEST
[
'password_key'
],
error_message
))
REQUEST
=
context
.
REQUEST
REQUEST
=
context
.
REQUEST
next_url
=
context
.
portal_password
.
changeUserPassword
(
password
=
REQUEST
[
'password'
],
next_url
=
context
.
portal_password
.
changeUserPassword
(
password
=
REQUEST
[
'password'
],
password_confirmation
=
REQUEST
[
'password_confirm'
],
password_confirmation
=
REQUEST
[
'password_confirm'
],
...
...
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