Own Login within a Block

Permalink
My own Form should Users login to the dashboard like Systemlogin.
It seems that ccm_token string is wrong, but when i copy and paste it manualy in my code of custom block it works for a day. After a day login failed and i will be routet to system login page.

Here my Code:

<?php
$token = Loader::helper('validation/token')->generate('ccm_token');
?>

<div id="loginBox" class="popover login-popover" style="display: none;">
<form class="form-signin" action="/login/authenticate/concrete" method="post">
<h4 class="form-signin-heading">Login</h4>
<label for="inputEmail" class="sr-only">Email address</label>
<input type="text" id="inputUsername" name="uName" class="form-control" placeholder="Benutzername" required autofocus>
<label for="inputPassword" class="sr-only">Password</label>
<input type="password" id="inputPassword" name="uPassword" class="form-control" placeholder="Passwort" required>
<div class="checkbox">
<label><input type="checkbox" value="1" name="uMaintainLogin">Eingeloggt bleiben</label>
</div>
<button class="btn btn-lg btn-primary btn-block" type="submit">Anmelden</button>
<input type="hidden" value="<?php echo $token;?>" name="ccm_token">
</form>
<a href="/login/concrete/forgot_password">Passwort vergessen</a>
</div>

KlarCode
 
KlarCode replied on at Permalink Best Answer Reply
KlarCode
I've found the solution by myself, i change $token with this:
<code>
$token = Loader::helper('validation/token')->generate('login_concrete');
</code>
backupaccount7 replied on at Permalink Reply
Thank you. That is exactly what I have been looking for. :)