Commit a5978e11 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_credential: Do not accept Credential Update Synchronously when password is included

The presence of the password in the Credential Update should not change the processing workflow
of the Credential Update. For Now we just update the password and leave to rest to normal process
parent dcb5eecb
...@@ -97,7 +97,8 @@ else:\n ...@@ -97,7 +97,8 @@ else:\n
# within same transaction and update client side credentials cookie \n # within same transaction and update client side credentials cookie \n
username = person.getReference()\n username = person.getReference()\n
if password and username == str(portal.portal_membership.getAuthenticatedMember()):\n if password and username == str(portal.portal_membership.getAuthenticatedMember()):\n
credential_update.accept()\n # The password is updated synchronously and the the rest of the credential Update is done later\n
credential_update.Credential_updatePersonPassword()\n
portal.cookie_authentication.credentialsChanged(username, username, password)\n portal.cookie_authentication.credentialsChanged(username, username, password)\n
portal_status_message = "Password changed."\n portal_status_message = "Password changed."\n
\n \n
......
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