Jump to:

23480 Posts in 18951 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » login form not visible

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 1964 Views
  • marcink
    Avatar
    Community Member
    89 Posts

    login form not visible Link to this post

    hi,

    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?

    thanks

  • Ben Gribaudo
    Avatar
    Community Member
    181 Posts

    Re: login form not visible Link to this post

    Hi,

    Does the patch attached to ticket 3750 help?

    Ben

  • marcink
    Avatar
    Community Member
    89 Posts

    Re: login form not visible Link to this post

    hi,
    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.

  • Ben Gribaudo
    Avatar
    Community Member
    181 Posts

    Re: login form not visible Link to this post

    Hum...that patch isn't included in trunk yet so you would have needed to manually apply it to get it.

  • marcink
    Avatar
    Community Member
    89 Posts

    Re: login form not visible Link to this post

    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

    Attached Files
  • Ben Gribaudo
    Avatar
    Community Member
    181 Posts

    Re: login form not visible Link to this post

    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?

    Ben

  • Ben Gribaudo
    Avatar
    Community Member
    181 Posts

    Re: login form not visible Link to this post

    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.

    Ben

  • marcink
    Avatar
    Community Member
    89 Posts

    Re: login form not visible Link to this post

    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?

    1964 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.