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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   1080 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