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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

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

Log in widget not working in 2.3


Go to End


2 Posts   2527 Views

Avatar
joelg

Community Member, 134 Posts

4 March 2009 at 12:43am

Hi

I've just upgraded to silverstripe 2.3, but the login widget doesn't work. The normal login ("/mysite/admin/") however does work, but not the widget. When the user logs in you get redirected to a page that can't be found. This is the ss code:

<div class="CustomLogin">
<% if CurrentMember %>
<p class="loggedinas">Du er logget ind som:<br/><strong> <% if CurrentMember.Nickname %>$CurrentMember.Nickname<% else %>Anonymous<% end_if %></strong></p>
<p><a href="Security/logout">Log ud</a></p>
<% else %>
<form action="emmaus/Security/?executeForm=LoginForm" method="post" enctype="application/x-www-form-urlencoded">
<p id="MemberLoginForm_MemberLogin_error" class="message " style="display:none"></p>
<fieldset>
<input class="hidden" type="hidden" name="AuthenticationMethod" value="MemberAuthenticator" />

<div id="Email" class="field text ">
<label class="left" for="MemberLoginForm_MemberLogin_Email">Email: </label><br/><input class="text" type="text" id="MemberLoginForm_MemberLogin_Email" name="Email" value="" />
</div>
<div id="Password" class="field encrypt">
<label class="left" for="MemberLoginForm_MemberLogin_Password">Password: </label><br/><input class="text" type="password" id="MemberLoginForm_MemberLogin_Password" name="Password" value="" />
</div>
<p id="Remember" class="field checkbox">
<input class="checkbox" type="checkbox" value="1" id="MemberLoginForm_MemberLogin_Remember" name="Remember" />
<label class="right" for="MemberLoginForm_MemberLogin_Remember">Husk mig?</label>
</p>
<input class="hidden" type="hidden" id="LoginWidget_BackURL" name="BackURL" value="$Link" />
<div class="clear"><!-- --></div>
</fieldset>
<div class="Actions">
<input class="action " id="MemberLoginForm_MemberLogin_action_dologin" type="submit" name="action_dologin" value="Log ind" />
<input class="action " id="MemberLoginForm_MemberLogin_action_forgotPassword" type="submit" name="action_forgotPassword" value="Glemt password?" />
</div>
</form>
<% end_if %>
</div>

Really hope someone can help!

Avatar
abes

Community Member, 11 Posts

5 March 2009 at 9:23am

Just remove emmaus from the action attribute.

This helped me to get it working again.