I’m using the following code to allows users to log in:
{exp:member:login_form return="{homepage}"}
<p></p><label>Username</label><br />
<input type="text" name="username" value="" maxlength="32" size="25"></p>
<p></p><label>Password</label><br />
<input type="password" name="password" value="" maxlength="32" size="25"></p>
{if auto_login}
<p><input type="checkbox" name="auto_login" value="1"> <span>Auto-login on future visits</span></p>
{/if}
<input type="submit" name="submit" value="Submit"></p>
<p><a href="{path='member/forgot_password'}">Forgot your password?</a></p>
<p><a href="{path='member/register'}">Need an account?</a></p>
{/exp:member:login_form}
I’ve got two problems… after the user logs in, they get the “Thank you, you are now logged in” screen. However it just sits there and never redirects to the home page. I’ve tried both return=”{homepage}” and “return=‘main/index’” (which is the main site page. Neither works… the thank you page just sits there forever.
The other issue I’m having, also on the “you’re logged in” page is that the {username} tag doesn’t work. I have a page header that says “Hello Jason” (for example), but when sitting on the “you’re now logged in page” it says “Hello {username}” and doesn’t parse the tag. On all other pages, it works fine.
Thoughts?
