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
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roque
erp5
Commits
b9961e85
Commit
b9961e85
authored
Dec 28, 2021
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_credential: drop duplicated password confitmation
parent
16c8c71f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newCredentialRequest.py
...al_skins/erp5_credential/ERP5Site_newCredentialRequest.py
+1
-6
No files found.
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newCredentialRequest.py
View file @
b9961e85
...
@@ -8,11 +8,6 @@ module = portal.getDefaultModule(portal_type='Credential Request')
...
@@ -8,11 +8,6 @@ module = portal.getDefaultModule(portal_type='Credential Request')
portal_preferences
=
portal
.
portal_preferences
portal_preferences
=
portal
.
portal_preferences
category_list
=
portal_preferences
.
getPreferredSubscriptionAssignmentCategoryList
()
category_list
=
portal_preferences
.
getPreferredSubscriptionAssignmentCategoryList
()
if
password_confirmation
:
if
password
!=
password_confirmation
:
message_str
=
"Password and Confirmation Password must be same"
return
context
.
Base_redirect
(
"join_form"
,
keep_items
=
dict
(
portal_status_message
=
message_str
),
notification_status
=
'error'
)
if
not
context
.
CredentialRequest_checkLoginAvailability
(
reference
):
if
not
context
.
CredentialRequest_checkLoginAvailability
(
reference
):
message_str
=
"Selected login is already in use, please choose different one."
message_str
=
"Selected login is already in use, please choose different one."
return
context
.
Base_redirect
(
"join_form"
,
keep_items
=
dict
(
portal_status_message
=
message_str
))
return
context
.
Base_redirect
(
"join_form"
,
keep_items
=
dict
(
portal_status_message
=
message_str
))
...
@@ -73,4 +68,4 @@ else:
...
@@ -73,4 +68,4 @@ else:
credential_request
.
submit
(
"Automatic submit"
)
credential_request
.
submit
(
"Automatic submit"
)
message_str
=
"Credential Request Created."
message_str
=
"Credential Request Created."
return
context
.
Base_redirect
(
"login_form"
,
keep_items
=
dict
(
portal_status_message
=
message_str
))
return
context
.
Base_redirect
(
"login_form"
,
keep_items
=
dict
(
portal_status_message
=
context
.
Base_translateString
(
message_str
)
))
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