Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Users without passwords


Go to End


3 Posts   1208 Views

Avatar
MarcusDalgren

Community Member, 288 Posts

14 July 2009 at 2:04am

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

Avatar
MarcusDalgren

Community Member, 288 Posts

14 July 2009 at 2:09am

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?

Avatar
AdamJ

Community Member, 145 Posts

14 July 2009 at 3:12am

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