Jump to:

22979 Posts in 11808 Topics by 2827 members

General Questions

SilverStripe Forums » General Questions » Users without passwords

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: 817 Views
  • MarcusDalgren
    Avatar
    Community Member
    288 Posts

    Users without passwords Link to this post

    Hello.

    I have noticed that I can create users in the CMS without giving them a password. This results in the password field in the database being set to NULL and the same for the password table. However, a user created without a password can't login for whatever reason.

    I am in a somewhat special situation where I actually want to allow users who only have a user name and no password, is there any way to implement this?

    Kindly, Marcus

  • MarcusDalgren
    Avatar
    Community Member
    288 Posts

    Re: Users without passwords Link to this post

    The member authenticator contains this line

    $member = DataObject::get_one("Member", "Email = '$SQL_user' AND Password IS NOT NULL");


    This means that records in the database without passwords never will be found. How do I get around this?

  • AdamJ
    Avatar
    Community Member
    145 Posts

    Re: Users without passwords Link to this post

    Well if you need it to be null, you'll have to alter the member authenitcator, or create your own authenticator

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