Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roque
slapos.core
Commits
ac04263c
Commit
ac04263c
authored
Jul 23, 2021
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
slapos_jio: do not display the authentication form if user is not anonymous
See merge request
nexedi/slapos.core!318
parents
468b503b
87a324e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/login_form.zpt
...ateItem/portal_skins/slapos_hal_json_style/login_form.zpt
+9
-2
No files found.
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/login_form.zpt
View file @
ac04263c
...
...
@@ -7,7 +7,8 @@
<link
rel=
"stylesheet"
href=
"zocial.min.css"
>
</head>
<body
tal:define=
"form_action string:WebSite_login;"
>
<body
tal:define=
"form_action string:WebSite_login;
portal here/getPortalObject"
>
<div
data-role=
'page'
>
<div
data-gadget-scope=
'header'
>
...
...
@@ -39,7 +40,13 @@
</tal:block>
</section>
</div>
<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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment