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.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

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

Log in widget not working in 2.3


2 Posts   1330 Views


Community Member, 129 Posts

4 March 2009 at 12:43am


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>
            <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 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="" />
            <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>
            <input class="hidden" type="hidden" id="LoginWidget_BackURL" name="BackURL" value="$Link" />
            <div class="clear"><!-- --></div>
      <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?" />
   <% end_if %>

Really hope someone can help!


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.