Commit 06f21399 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_web_renderjs_ui: Update login form to authorised CORS

parent 92bb8d7d
......@@ -201,7 +201,7 @@
</item>
<item>
<key> <string>configuration_login</string> </key>
<value> <string>connection/login_form{?came_from}</string> </value>
<value> <string>connection/login_form{?came_from,cors_origin}</string> </value>
</item>
<item>
<key> <string>configuration_logout</string> </key>
......
......@@ -33,6 +33,17 @@
<section>
<form method="post" tal:attributes="action python: '%s/' % context.absolute_url()">
<div class="ui-field-contain" tal:condition="exists: request/came_from">
<p data-i18n="Please authenticate to allow this application to access your data in ERP5">
Please authenticate to allow this application to access your data in ERP5
</p>
</div>
<div class="ui-field-contain" tal:condition="exists: request/came_from">
<label data-i18n="Login">Authorize Domain<span></span></label>
<div><input required
type="text" name="new_cors_origin"
tal:attributes="value request/cors_origin" /></div>
</div>
<div class="ui-field-contain">
<label data-i18n="Login">Login<span></span></label>
<div><input autofocus type="text" name="__ac_name" value="" required=""></div>
......
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