Commit 9e4de5a2 authored by Łukasz Nowak's avatar Łukasz Nowak

Simplify.

form_id was dirty hack. Improve the message.
parent dc62c584
......@@ -55,10 +55,7 @@
<h1 i18n:translate="" i18n:domain="ui">Log in</h1>\n
</tal:block>\n
<tal:block tal:condition="python: request.get(\'came_from\', None) is not None">\n
<h1 i18n:translate="" i18n:domain="ui">You do not have enough permissions to access this page.</h1>\n
</tal:block>\n
<tal:block tal:condition="python: request.get(\'form_id\', None) is not None">\n
<tal:block tal:define="came_from python: request.set(\'came_from\', \'/\'.join([here.getWebSiteValue().absolute_url(), request.get(\'form_id\', None)]))"></tal:block>\n
<h1 i18n:translate="" i18n:domain="ui">Please login before continue.</h1>\n
</tal:block>\n
<tal:block tal:condition="python: request.get(\'came_from\', None) is not None">\n
<tal:block tal:define="dummy python: request.RESPONSE.setCookie(\'redirect_after_login\', request.get(\'came_from\'), path=\'/\')"></tal:block>\n
......
402
\ No newline at end of file
403
\ No newline at end of file
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