Web Connection
UserSecurity.ExpiresOn
Gravatar is a globally recognized avatar based on your email address. UserSecurity.ExpiresOn
  Kathy
  All
  Jun 16, 2017 @ 10:35am

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

Gravatar is a globally recognized avatar based on your email address. re: UserSecurity.ExpiresOn
  Rick Strahl
  Kathy
  Jun 16, 2017 @ 01:22pm

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

Gravatar is a globally recognized avatar based on your email address. re: UserSecurity.ExpiresOn
  Carl Chambers
  Kathy
  Jun 16, 2017 @ 01:31pm

Hi Kathy,

That's basically what I did. I subclassed wwUserSecurity and overrode the methods as needed.

Carl

Gravatar is a globally recognized avatar based on your email address. re: UserSecurity.ExpiresOn
  Rick Strahl
  Carl Chambers
  Jun 16, 2017 @ 02:46pm

That's basically what I did. I subclassed wwUserSecurity and overrode the methods as needed.

Yup that's the idea...

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: UserSecurity.ExpiresOn
  Kathy
  Rick Strahl
  Jul 12, 2017 @ 06:59am

Thank you so much for your help.
Kathy

© 1996-2024