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.
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
Line 215 in F:\xampp\htdocs\websiteX\sapphire\security\Security.php
I figured out a solution. In sapphire/Security/MemberLoginForm.php you need to edit line 57
$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.
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