Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Custom Login Form

Go to End

11 Posts   9481 Views


Community Member, 72 Posts

2 September 2008 at 4:20pm

nice, I'll look into that module.


Community Member, 20 Posts

21 September 2008 at 3:10pm

Did you guys ever get this to work? I'd be interested to see what you did...


Community Member, 470 Posts

21 September 2008 at 3:39pm

Edited: 21/09/2008 3:39pm

I just took the easy/lazy way and hard coded the login form in an html include .ss file.

It worked good enough for what I needed, as there is a hidden input field which acts as the redirect after they login.

I'm sure you could subclass if needed to do more complex stuff, but I didn't need it after all.

Here was my code, though I modified the form a bit to display a link to the forgot password form, rather than have it a form field button. Just look at the html source output from $LoginForm if you want the original.

<form action="Security/?executeForm=LoginForm" method="post" enctype="application/x-www-form-urlencoded">

<div class="left">
    <input type="hidden" name="AuthenticationMethod" value="MemberAuthenticator" />
    <label for="memberEmail">Email</label>
    <br />
    <input type="text" id="memberEmail" name="Email" value="" />

<div class="left">
    <label for="memberPassword">Password</label>
    <br />
    <input type="password" id="memberPassword" name="Password" value="" />

<input type="hidden" id="backURL" name="BackURL" value="/your-url-here/" />
<div id="login" class="left">	    
	<input type="submit" id="memberLogin" name="action_dologin" value="Login"  />

<br class="clearFix"/>

<div class="left">
    <input type="checkbox" value="1" id="rememberMe" name="Remember" />
    <label for="rememberMe">Remember me?</label>
    | <a href="Security/lostpassword">Forgot Your Password?</a>


Go to Top