- Removed CMS_REQUEST_UTIL - centralize a few request related code into CMS_API Added CMS_API.user, CMS_API.set_user (CMS_USER), ... and user related routines. Refactored Auth related code - added various abstractions to factorize implementation and harmonize solutions. - revisited the logout strategy. - updated the account info page, and remove info user should not care about. - simplified the process, and encourage auth module to follow same design. Added CMS_LINK helper routines to modify the related query string. Removed CMS_USER.profile (and related routines) - It was not used so far. - it will probably a specific module later, if needed. Update various module to avoid fetching user from sql directly, and let this task to CMS_USER_API. Removed CMS_NODE_API.node_author (a_node: CMS_NODE): detachable CMS_USER, - as the info is already in CMS_NODE.author Added CMS_RESPONSE.redirection_delay, if ever one code want to redirect after a few seconds. Added the request uri info to the not found cms response.
24 lines
796 B
Smarty
24 lines
796 B
Smarty
{unless isset="$user"}
|
|
<div class="login-box">
|
|
<div class="description">The "Session" is the standard authentication system. (based on cookie)</div>
|
|
<h3>Login or <a href="{$site_url/}account/roc-register">Register</a></h3>
|
|
<div>
|
|
<form name="cms_session_auth" action="{$site_url/}account/auth/roc-session-login" method="POST">
|
|
<div>
|
|
<input type="text" name="username" id="username" required value="{$username/}">
|
|
<label>Username</label>
|
|
</div>
|
|
<div>
|
|
<input type="password" name="password" id="password" required >
|
|
<label>Password</label>
|
|
</div>
|
|
<button type="submit">Login</button>
|
|
</form>
|
|
</div>
|
|
<div>
|
|
<a href="{$site_url/}account/new-password">Forgot password?</a>
|
|
</div>
|
|
{if isset="$error"}<div class="error">{$error/}</div>{/if}
|
|
</div>
|
|
{/unless}
|