Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Admin not logging in

Our old forums are still available as a read-only archive.

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

Page: 1 2 3 4 5
Go to End
Author Topic: 12030 Views
  • sherman
    Avatar
    Community Member
    48 Posts

    Admin not logging in Link to this post

    Seems to be an issue with my admin login. I used the login details I created when I installed SS.
    When I login nothing happens, the page stays on the login and the url changes from:

    http://peds.org/_devsite/Security/login

    to:

    http://peds.org/_devsite/Security/login#MemberLoginForm_LoginForm_tab

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Admin not logging in Link to this post

    http://peds.org/_devsite/Security/login#MemberLoginForm_LoginForm_tab

    would indicate that the login failed and it redirected you back to the form you submitted. Make sure you admin details are correct otherwise try adding this to mysite/_config.php

    Security::set_default_admin("test", "test");

    then try login to yoursite.com/admin with test / test

  • sherman
    Avatar
    Community Member
    48 Posts

    Re: Admin not logging in Link to this post

    that seems to just kill the page and makes it empty.

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Admin not logging in Link to this post

    Sorry got my method name wrong it should be

    Security::setDefaultAdmin() not set_default_admin()

  • sherman
    Avatar
    Community Member
    48 Posts

    Re: Admin not logging in Link to this post

    Security::setDefaultAdmin("user", "crazynewpassword");

    Ok, I got this working, how do I edit my login details or add new admins?

  • sherman
    Avatar
    Community Member
    48 Posts

    Re: Admin not logging in Link to this post

    So I timed out my brief time on the admin section and again it wont let me login.

    Is there something I need to purge? cache?

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Admin not logging in Link to this post

    You should be allowed to login with that account again theres no limit etc.. You can create new admins the same way as you do normally - by clicking the Security link at the top and creating a new member entry in the Adminstrators folder

  • sherman
    Avatar
    Community Member
    48 Posts

    Re: Admin not logging in Link to this post

    For some reason adding that bit of code just isnt working.

    Security::setDefaultAdmin("admin", "test");

    Is there a proper place for it inside the config file? Should it not just work?

    I'm loosing my mind as to why it would work once and not again.

    12030 Views
Page: 1 2 3 4 5
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.