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.

Customising the CMS

Error message after login


6 Posts   1409 Views


10 March 2011 at 4:13am Community Member, 94 Posts

I am trying to figure out something simple which doesnt seem simple. Maybe its also caused by being in code to long now :)

When logging in and not filling out anything or filling out wrong credentials i cant get an error message to appear. This is also not the facts when trying to login on this forum. How do i get an error message above the login form when logging in failed?

Carbon Crayon

13 April 2011 at 7:44pm Community Member, 598 Posts

Hi Bart,

Did you figure this out? I am having the same problem when using a Custom Login form template....


Aram - Your one stop SilverStripe learning resource.

Carbon Crayon

13 April 2011 at 8:07pm Community Member, 598 Posts

Ok I found the problem,

When using a custom template (i.e. you need to use $Form rather than $LoginForm.

Hope that helps :)

Aram - Your one stop SilverStripe learning resource.


16 April 2011 at 11:44am (Last edited: 16 April 2011 12:18pm), Community Member, 41 Posts

Hi Aram,

I think I have an same issue and I couldn't understand the solution you put above.

I thought form is not working at all but after I read this thread I enter all the value and submit then it's working...

If I don't enter anything then look like the page is just refreshing,,,,

I created "" , "MyForm.php "then





4 May 2011 at 2:06am Forum Moderator, 1091 Posts

Just wondering - I can't really think of a user that doesn't enter anything at all and then doesn't understand that he can't login without explanation. I could maybe think of a bot that pushes a button - and that I don't want to provide with unneeded info.

So I would be quite happy if this were by design. Please tell me if and why this doesn't make sense...


22 February 2012 at 1:34pm (Last edited: 24 February 2012 5:13pm), Community Member, 103 Posts


I've found this to be a problem too. Going to the default login URL i.e. and entering wrong credentials the page just appears to refresh. No error message. Does anyone know how to correct this? Ideally there should be a message like "Invalid username or password". The same is true of this forum - if you try to login with bogus credentials the login page appears to just refresh.