Jump to:

23480 Posts in 18951 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Admin Login Form Issues

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
Go to End
Author Topic: 1980 Views
  • pream
    Avatar
    Community Member
    6 Posts

    Admin Login Form Issues Link to this post

    I'm sorry if this is somewhere else but I've been looking all over for the answer

    I'm developing a theme right now and all of a sudden I can't access the admin section

    www.mysite.com/admin

    That goes to the homepage, someone somewhere said to not remove <% base_tag %>

    That was the only solution I found to it, but basetag is still there and its not working, I am ripping my hair out

    Thank You for your Help

    Pream T.

  • Willr
    Avatar
    Forum Moderator
    5502 Posts

    Re: Admin Login Form Issues Link to this post

    Has anything could have changed on your environment which could have changed the data?

    You can hard code a member account by putting the following in your mysite/_config.php file

    Security::setDefaultAdmin('admin', 'password');

  • pream
    Avatar
    Community Member
    6 Posts

    Re: Admin Login Form Issues Link to this post

    It's not a password issue, it's that I can't get to the login page

    If i can get to the login form I will have no problem logging in

  • pream
    Avatar
    Community Member
    6 Posts

    Re: Admin Login Form Issues Link to this post

    Also, I tried to keep as much the same as possible, I am not sure about anything changing

  • pream
    Avatar
    Community Member
    6 Posts

    Re: Admin Login Form Issues Link to this post

    I also want to note that when I go to

    www.mysite.com/admin

    the title changes to login but the actual page I am seeing is the homepage

  • pream
    Avatar
    Community Member
    6 Posts

    Re: Admin Login Form Issues Link to this post

    The Issue is in my theme, when I changed the theme to black candy, I got the admin login screen

    By the way: It's a theme I'm developing from scratch

    So i guess the question is how to incorporate an admin login page into my theme

  • Juanitou
    Avatar
    Community Member
    323 Posts

    Re: Admin Login Form Issues Link to this post

    Try adding $Form to the generic Page.ss template.

    Hope it helps,
    Juan

  • pream
    Avatar
    Community Member
    6 Posts

    Re: Admin Login Form Issues Link to this post

    Thanks it worked

    1980 Views
Page: 1
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.