Commit c0685e19 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: fix ERP5Site_activeLogin

The commit dee343f3 said:
slapos_jio: after activate the login come back to WebSite and not to the portal.
    
But it actually went to the WebSection and not the WebSite.
    
This fixes ERP5Site_activeLogin on slapos master because right now we
have this URL in emails sent to customer to activate their login:
    
https://slapos.vifib.com/hateoas/connection/ERP5Site_activeLogin?key=XXX
    
So the script is setupping the came from as:
    
https://slapos.vifib.com/hateoas/connection/#!login?p.page=slapos{&n.me}
    
which is not working (returns AttributeError: form_view error)
    
The URL https://slapos.vifib.com/#!login?p.page=slapos{&n.me} is working
though.


See merge request !223
parents e0b4339e 23cbe832
Pipeline #9566 failed with stage
in 0 seconds
...@@ -6,7 +6,7 @@ portal = context.getPortalObject() ...@@ -6,7 +6,7 @@ portal = context.getPortalObject()
assert key assert key
mail_message = portal.ERP5Site_unrestrictedSearchMessage(key=key) mail_message = portal.ERP5Site_unrestrictedSearchMessage(key=key)
came_from = context.getWebSectionValue().absolute_url() + "/#!login?p.page=slapos{&n.me}" came_from = context.getWebSiteValue().absolute_url() + "/#!login?p.page=slapos{&n.me}"
credential_request = mail_message.getFollowUpValue() credential_request = mail_message.getFollowUpValue()
if credential_request.getValidationState() in ('submitted', 'accepted'): if credential_request.getValidationState() in ('submitted', 'accepted'):
message = translateString("Your account is already active.") message = translateString("Your account is already active.")
......
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