Commit bb63e3f9 authored by Roque's avatar Roque

erp5_credential: drop duplicated password confitmation

parent e8c85e5f
...@@ -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)))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment