21311 Posts in 5739 Topics by 2604 members
General Questions
SilverStripe Forums » General Questions » Login as someone else - Error: Passed invalid authentication method
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 1733 Views |
-
Login as someone else - Error: Passed invalid authentication method

4 June 2009 at 8:01pm
Hi Guys,
When I press the button "log in as someone else", I get the following error. Please assist with resolving the issue. I am currently using SS 2.3 for the website I am constructing. Thanks[User Error] Passed invalid authentication method
POST /websiteX/Security/LoginFormLine 215 in F:\xampp\htdocs\websiteX\sapphire\security\Security.php
-
Re: Login as someone else - Error: Passed invalid authentication method

4 June 2009 at 8:17pm
I figured out a solution. In sapphire/Security/MemberLoginForm.php you need to edit line 57
change from:
$actions = new FieldSet(new FormAction("logout", _t('Member.BUTTONLOGINOTHER', "Log in as someone else")));
to the following:
$actions = new FieldSet(new HiddenField("AuthenticationMethod", null, $this->authenticator_class, $this),
new FormAction("logout", _t('Member.BUTTONLOGINOTHER', "Log in as someone else"))
);If someone can put this on the ticketing system as a fault that would be great otherwise I will do so when I get around to it sometime. Hope this solution helps anyone that was having the same issue.
-
Re: Login as someone else - Error: Passed invalid authentication method

13 June 2009 at 7:49am
I had the same problem recently, on a custom template. But I realised that I didn't have <% base_tag %> in my <head> on the template Page.ss
Seemed to go away when I added this
| 1733 Views | ||
|
Page:
1
|
Go to Top |

