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

PasswordExpiry not NULL ?


Go to End


3 Posts   1884 Views

Avatar
Myrdhin

Community Member, 70 Posts

11 April 2011 at 10:10pm

Hello,

I have SS 2.4.0 and when a add a member in the admin security and i want to connect to this new member, SS always ask me a new password.

In my DB, i see that user have a PasswordExpiry set to the creation date (and not NULL). Only an ADMIN member have a NULL PasswordExpiry.

How to always set to NULL PasswordExpiry ?

Thank for your help,

Avatar
swaiba

Forum Moderator, 1899 Posts

11 April 2011 at 10:14pm

It's NULL in my db's and the users are not constantly prompted for new passwords - or I'd hear about it!

You might try upgrading as 2.4.0 is rather out of date... maybe that will fix things up

Avatar
Myrdhin

Community Member, 70 Posts

12 April 2011 at 3:49am

Thanks for your response but i found my error. I used a custom class to replace 'Date'

Object::useCustomclass('Date', 'MyDate');

But in "MyDate", i always return a default date : today. But when you create a user and you use "Date", the date is set to "NULL", not today like in my "MyDate" class :-)