21288 Posts in 5733 Topics by 2602 members
Page: 1 2
|Go to End||Next >|
19 April 2009 at 10:45pm
i've got an issue with the login form.
when i go to http://mysite/admin i only see this text: "Enter your email address and password to access the CMS." but no login form.
only by reloading the page i see the form.
this is only on my custom template, not with the black candy original template.
does anyone know the reason behind this?
21 April 2009 at 1:17am
no, unfortunately not.
i checked my Security.php, but it's already been patched.
it's by the way the newest release 2.3.1...
i really think that's something with my template, since the clean install with ss default template is working.
21 April 2009 at 2:05am
Hum...that patch isn't included in trunk yet so you would have needed to manually apply it to get it.
21 April 2009 at 2:29am
could it be, that the line numbers are different?
in the attachement you see the screenshot of how it looks like in my Security.php
21 April 2009 at 5:39am
Yes, the line numbers are different. Replace your line 344 with the line in green on http://open.silverstripe.com/attachment/ticket/3750/Security-Form%20Code%20Should%20Not%20Go%20in%20Content%20Variable.patch.
Does that fix the issue?
21 April 2009 at 5:46am
Also, you'll want to have both the $Content and $Form variables in your template code. After looking at your post again, it sounds like your problem may be the fact that you don't have $Form in your template. The patch I mentioned fixes another--but somewhat related--issue.
21 April 2009 at 6:45am Last edited: 21 April 2009 6:46am
That was the solution...
thanks a lot!
ps.: do i have to put $Form in every template? or is it fine just in Page.ss?
Page: 1 2
|Go to Top||Next >|