Hi, Im trying to override the Silverstripe login for page, I have created a file called Security_login.ss into my themes folder the way you do normally in SS3, and I call the form in by $LoginForm.
The page works fine and custom template loads in, but when I actually try and login it gives a 404 page.
The form actions look different from the $LoginForm and the default silverstripe login form, the $LoginForm action is "/Security/LoginForm/’ but the default login action is “/Security/login/default/LoginForm/”
Hi Anish, can we get a bit more detail on what you’re trying to do - are you only overriding the template or are you using a different controller as well? Please post any code you’re using so we can try to see what’s happening.
I tried this out and got the same issue, dug a little deeper and it seems you need to use $Form instead of $LoginForm. I can’t remember if it was the same in SS3 or not but changing that fixed the issue for me. I also noticed you don’t have a <% base_tag %> in your head section, doesn’t seem to be a big problem in this case but SilverStripe does expect that tag to be present.