Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Léo-Paul Géneau
slapos.core
Commits
2286a74d
Commit
2286a74d
authored
Nov 12, 2021
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_erp5: Send proper url and message whenever the Password expire
parent
f3e40ba7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_base/Login_notifyPasswordExpire.py
...em/portal_skins/slapos_base/Login_notifyPasswordExpire.py
+5
-0
No files found.
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_base/Login_notifyPasswordExpire.py
View file @
2286a74d
...
...
@@ -29,8 +29,11 @@ tag = 'credential_recovery_%s' %context.getReference()
if
portal
.
portal_activities
.
countMessageWithTag
(
tag
):
return
preferred_slapos_web_site_url
=
context
.
portal_preference
.
getPreferredSlaposWebSiteUrl
()
if
context
.
getWebSectionValue
()
is
not
None
:
context
.
REQUEST
.
set
(
'came_from'
,
context
.
getWebSectionValue
().
absolute_url
())
elif
preferred_slapos_web_site_url
not
in
[
""
,
None
]:
context
.
REQUEST
.
set
(
'came_from'
,
preferred_slapos_web_site_url
)
module
=
portal
.
getDefaultModule
(
portal_type
=
'Credential Recovery'
)
credential_recovery
=
module
.
newContent
(
...
...
@@ -40,4 +43,6 @@ credential_recovery = module.newContent(
language
=
portal
.
Localizer
.
get_selected_language
(),
activate_kw
=
{
'tag'
:
tag
})
context
.
serialize
()
credential_recovery
.
setDocumentReference
(
'credential_recovery-password-expiration-link'
)
credential_recovery
.
submit
()
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