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.

General Questions

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

PasswordExpiry not NULL ?


Reply

3 Posts   1056 Views

Avatar
Myrdhin

11 April 2011 at 10:10pm Community Member, 67 Posts

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

11 April 2011 at 10:14pm Forum Moderator, 1796 Posts

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

12 April 2011 at 3:49am Community Member, 67 Posts

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 :-)