Commit 4450eb4b authored by Thorsten Griebenow's avatar Thorsten Griebenow

Merge branch 'use-current-page-with-query-string-in-login-and-logout' into 'develop'

Adds option "addQueryString" to login and logout form

See merge request !221
parents a3a48c3b 82af5c6d
......@@ -27,11 +27,11 @@
</script>
<span><i class="fa fa-user" aria-hidden="true"></i></span>
<form action="{f:uri.page()}" onsubmit="return true;" method="post">
<form action="{f:uri.page(addQueryString:1)}" onsubmit="return true;" method="post">
<div class="hidden">
<input type="hidden" name="logintype" value="login">
<input type="hidden" name="pid" value="{f:cObject(typoscriptObjectPath:'lib.loginPid')}">
<input type="hidden" name="redirect_url" value="{f:uri.page()}">
<input type="hidden" name="redirect_url" value="{f:uri.page(addQueryString:1)}">
</div>
<input class="form-control" name="user" placeholder="Username" type="text">
<input class="form-control" name="pass" placeholder="Password" data-rsa-encryption onfocus="rsaauthInit()" type="password">
......
<html xmlns:f="http://typo3.org/ns/typo3/cms-fluid/master/ViewHelpers" xmlns:t="http://typo3.org/ns/T3o/T3olayout/ViewHelpers" data-namespace-typo3-fluid="true">
<span><f:format.raw><t:gravatar emailAddress="{user.email}" size="100" /></f:format.raw></span>
<form action="{f:uri.page()}" method="post">
<form action="{f:uri.page(addQueryString:1)}" method="post">
<div class="hidden">
<input type="hidden" name="logintype" value="logout">
<input type="hidden" name="pid" value="{loginPid}">
<input type="hidden" name="redirect_url" value="{f:uri.page()}">
<input type="hidden" name="redirect_url" value="{f:uri.page(addQueryString:1)}">
</div>
<h3>Hello {user.name}!</h3>
<p>Everybody can contribute. Get in contact with the teams.</p>
......
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