Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
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
Hamza
erp5-Boxiang
Commits
283416a4
Commit
283416a4
authored
Jan 19, 2016
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_credential: Fix Update Credential Cookie on Credential Update for ERP5 Login
parent
a5978e11
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/Credential_updatePersonPassword.xml
...skins/erp5_credential/Credential_updatePersonPassword.xml
+1
-0
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newPersonCredentialUpdate.xml
...ns/erp5_credential/ERP5Site_newPersonCredentialUpdate.xml
+6
-2
No files found.
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/Credential_updatePersonPassword.xml
View file @
283416a4
...
...
@@ -75,6 +75,7 @@ if context.getPassword():\n
(person.getRelativeUrl(), reference)\n
login.setEncodedPassword(context.getPassword())\n
context.portal_caches.clearCache((\'erp5_content_short\',))\n
return login.getReference()\n
</string>
</value>
</item>
<item>
...
...
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newPersonCredentialUpdate.xml
View file @
283416a4
...
...
@@ -98,9 +98,13 @@ else:\n
username = person.getReference()\n
if password and username == str(portal.portal_membership.getAuthenticatedMember()):\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
login_reference = credential_update.Credential_updatePersonPassword()\n
portal_status_message = "Password changed."\n
context.getPortalObject().cookie_authentication.credentialsChanged(\n
username,\n
login_reference,\n
password,\n
)\n
\n
portal_status_message = context.Base_translateString(portal_status_message)\n
return portal.Base_redirect(keep_items = {\'portal_status_message\': portal_status_message})\n
...
...
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