Fixed typo in auth post password message. Make sure to keep site_destination set in login form, so that the user is redirected to previous location. Use default http client in the feel aggregator component, instead of forcing libcurl usage.
25 lines
1.1 KiB
Smarty
25 lines
1.1 KiB
Smarty
{unless isset="$user"}
|
|
<div class="login-box">
|
|
<div class="description">The "Basic Auth" relies on the HTTP basic access authentication.<br/>(see also: <a href="https://en.wikipedia.org/wiki/Basic_access_authentication">https://en.wikipedia.org/wiki/Basic_access_authentication</a> )</div>
|
|
<h3>Login or <a href="{$site_url/}account/roc-register">Register</a></h3>
|
|
<div>
|
|
<form name="cms_basic_auth" action="{$site_url/}roc-basic-login" method="POST">
|
|
{unless isempty="$site_destination"}<input type="hidden" name="destination" value="{$site_destination/}">{/unless}
|
|
<input type="hidden" name="host" id="host" value="{$site_url/}">
|
|
<div>
|
|
<input type="text" name="username" id="username" required>
|
|
<label>Username</label>
|
|
</div>
|
|
<div>
|
|
<input type="password" name="password" id="password" required>
|
|
<label>Password</label>
|
|
</div>
|
|
<button type="button" onclick="ROC_AUTH.login();">Login</button>
|
|
</form>
|
|
</div>
|
|
<div>
|
|
<a href="{$site_url/}account/new-password">Forgot password?</a>
|
|
</div>
|
|
</div>
|
|
{/unless}
|