Commit 193acde9 authored by Christophe Dumez's avatar Christophe Dumez

- Fixed red status message when login is incorrect and trying to access a restricted page.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9359 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8c6c7391
......@@ -56,7 +56,7 @@
<tal:block tal:condition="isAnon">\n
<tal:block tal:define="dummy python: response.expireCookie(\'__ac\', path=\'/\');\n
url python: \'%s/login_form?portal_status_message=%s\' % (here.portal_url(), here.getPortalObject().Localizer.translate(\'ui\', \'Login+and/or+password+is+incorrect.\'));\n
url python: request.get(\'came_from\') and \'%s?came_from=%s\' % (url, request[\'came_from\']) or url;\n
url python: request.get(\'came_from\') and \'%s&came_from=%s\' % (url, request[\'came_from\']) or url;\n
dummy python: response.redirect(url);"/>\n
</tal:block>\n
<tal:block tal:condition="not: isAnon">\n
......
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