Jump to:

23493 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Admin password not working

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: 263 Views
  • jac_np
    Avatar
    Community Member
    6 Posts

    Admin password not working Link to this post

    I changed the email address for admin in the mysql member table.
    Since that time, I cannot log in as admin. It keeps reporting that the credentials are not correct.
    If I request a password reset, I get the link sent to me, enter my new password and I am logged in as admin.
    If I logout and attempt to log in again with the new password, it still does not work.
    For the meantime, I have added Security::setDefaultAdmin to my _config.php file and I can log in using that password.
    Any ideas on what is not working, or how I can check?

    Thanks,
    John

  • martimiz
    Avatar
    Forum Moderator
    1086 Posts

    Re: Admin password not working Link to this post

    Just to make sure - did you actually change it in the Member table by hand or the intended way, by using the CMS? As this happened immediately after changing the e-mailaddress, you could try changing it to another e-mailaddress, or reenter the current one, by typing it by hand - not pasting it in.

    I've had problems like this in the past where a hyphen was replaced by a special character version (pasting fronm Word )

  • jac_np
    Avatar
    Community Member
    6 Posts

    Re: Admin password not working Link to this post

    I changed the email address directly in phpmyadmin, not via the CMS.
    Since I had not changed it via the CMS, I thought if I reset the password via the CMS, then maybe it would right my wrong.
    I will try restoring the record completely from a previous back up and see if that works,

  • jac_np
    Avatar
    Community Member
    6 Posts

    Re: Admin password not working Link to this post

    Follow Up.

    I restored the member record that I altered manually in phpmyadmin back to its original by restoring from a sql dump I had taken previously.
    Once restored, I could log in correctly to CMS as admin without an issue.
    Once in the CMS, I changed the admin email address (using the CMS) and logged out.
    Once again I could not log in.
    So meantime I have restored the original member record.

    Has anyone else experienced this behaviour?

  • martimiz
    Avatar
    Forum Moderator
    1086 Posts

    Re: Admin password not working Link to this post

    Are you absolutely sure there are no special characters in the emailaddress - either when changing it in the CMS or entering it on login. You are not by any chance pasting it from, say, word or pdf?

    Have you tried using a different emailaddress, say aa@bb.cc, just to test?

  • jac_np
    Avatar
    Community Member
    6 Posts

    Re: Admin password not working Link to this post

    Solved.

    Never occurred to me that SS has no concept of a separate username. The email address is the username, so changing the email address for admin, changes the username for admin. Doh!
    So once changed, I can no longer login as admin.
    Seems obvious now.

    263 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.