Hello,
I'm working on users' forgot password and I need to give them a temp password with a time limit of 48 hours.
Can I use the ExpiresOn field in the Usersecurity table by changing it to datetime type?
And if yes, is it enough to override the following lines in **wwUsersecurity **or there are other parts that need to be taken care of?
ExpiresOn T,;
. . .
IF .NOT. EMPTY(THIS.ouser.expireson) .AND. THIS.ouser.expireson<DATETIME()
Thank you in advance,
Kathy
Hi Kathy,
Yes sure that should work.
In fact, looking at it now, the expiresOn
field should probably be of type DateTime anyway. I changed it in the default user security table settings.
Note there's one more place in wwUserSecurity
where expiresOn
is assigned that needs to also be changed to DateTime()
instead of Date()
.
+++ Rick ---
Hi Kathy,
That's basically what I did. I subclassed wwUserSecurity and overrode the methods as needed.
Carl
That's basically what I did. I subclassed wwUserSecurity and overrode the methods as needed.
Yup that's the idea...
+++ Rick ---