Commit eddda564 authored by Jérome Perrin's avatar Jérome Perrin

explain why unauthorized leads to login page.

enable automatic redirect when unauthorized.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5043 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 368075cc
......@@ -71,7 +71,17 @@
<body>\n
<div metal:fill-slot="main" i18n:domain="ui">\n
<div class="Desktop">\n
<h1 class="Desktop" i18n:translate="">Log in</h1>\n
<span tal:condition="python: request.get(\'came_from\', None) is not None">\n
<h1 class="Desktop" i18n:translate="">You don\'t have enough permissions to access this page</h1>\n
<span i18n:translate=""> You can log in with another user name or \n
</span>\n
<a href="javascript:history.back();" \n
i18n:translate="">go back.</a>\n
<br/> <br/>\n
</span>\n
<span tal:condition="python: request.get(\'came_from\', None) is None">\n
<h1 class="Desktop" i18n:translate="">Log in</h1>\n
</span>\n
<!-- <form action="" method="post"\n
tal:attributes="action string:${here/portal_url}/logged_in"\n
>\n
......
......@@ -95,7 +95,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
\n
<body LEFTMARGIN=0 TOPMARGIN=0 MARGINHEIGHT="0" MARGINWIDTH="0">\n
<form action="Test" method="POST" id="main_form"\n
tal:attributes="action here/absolute_url"\n
tal:attributes="action request/came_from | here/absolute_url"\n
tal:define="global has_local python: \'local_pt\' in here.objectIds();\n
global util_macros here/index_html_utils/macros;">\n
<div metal:use-macro="here/global_definition/macros/global_definition" />\n
......@@ -189,6 +189,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<key> <string>id</string> </key>
<value> <string>main_template</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
......
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