Forum

Posted by
amccarthy  -  December 2011
Hi,
I'm new to Roxen CMS and I am looking to understand how certain processes work within Roxen. Can anyone tell me in simple terms how the  login page works within Roxen? As is when you hit the submit button what is the process?
Thanks,
A.
 
Posted by
Erik Allemann  -  December 2011
I'm not sure what login page you're referring to specifically, but I can give some general pointers.

There are several ways of login in on Roxen CMS (cookie, LDAP, Kerberos, NTLM etc). A common mechanism is to use a cookie to authenticate. RXML has specfic tags to check if a user is present in the internal AC (access control) and then check if the credentials match.

For instance, check out <ac-cookie-auth/>:
 
  http://goo.gl/SkjZh
 
This is some example code using RXML:

  <nocache>
    <ac-cookie-auth ok_var='ok' password_variable='password' path='/' username_variable='username'/>
    <if variable="form.username">
      <if not="" variable="form.ok">
<p style="color: red;">
  Invalid username or password. Please try again.
</p>
      </if>
    </if>
    <form action="&page.self;" method="post">
      <input name='__from' type='hidden' value='&form.__from;'/>
      <table>
<tr>
  <td>E-mail:</td><td><input name='username' type='text'/></td>
</tr>
<tr>
  <td>Password:</td><td><input name='password' type='password'/></td>
</tr>
<tr>
  <td/><td><input type='submit' value='Login'/></td>
</tr>
      </table>
    </form>
 
Posted by
amccarthy  -  December 2011
Thanks Erik, that is a big help,
much appreciated, hopefully this will help me put together a clearer picture,
thanks,
A.
 
1
Search this thread: