Commit 74bc005f authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Do not display the authentication form if user is not anonymous

OfficeJS's user blocking third party cookie will at least stop entering their credentials many times for nothing
parent 2ab15c19
......@@ -6,7 +6,8 @@
<link rel="stylesheet" href="gadget_erp5_nojqm.css">
</head>
<body tal:define="form_action string:WebSite_login;">
<body tal:define="form_action string:WebSite_login;
portal here/getPortalObject">
<div data-gadget-scope='header'>
<div class="ui-header">
......@@ -30,7 +31,13 @@
</tal:block>
</section>
<section>
<section tal:condition="not: portal/portal_membership/isAnonymousUser">
<p i18n:domain="ui" i18n:translate="" >It seems you're already authenticated.</p>
<p><a tal:condition="exists: request/came_from"
tal:attributes="href request/came_from" >Go back</a></p>
</section>
<section tal:condition="portal/portal_membership/isAnonymousUser">
<form method="post" tal:attributes="action python: '%s/' % context.absolute_url()">
<div class="ui-field-contain">
......
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