17488 Posts in 4473 Topics by 1978 members
| Go to End | ||
| Author | Topic: | 7681 Views |
-
Re: Custom Login Form

21 September 2008 at 3:10pm
Did you guys ever get this to work? I'd be interested to see what you did...
-
Re: Custom Login Form

21 September 2008 at 3:39pm Last edited: 21 September 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><div class="left">
<label for="memberPassword">Password</label>
<br />
<input type="password" id="memberPassword" name="Password" value="" />
</div><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" />
</div><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>
</div></form>
| 7681 Views | ||
| Go to Top |



