This topic is locked
[SOLVED]

 How to chang the e-mail Password

12/8/2010 7:02:12 AM
ASPRunnerPro General questions
N
netgrass author

Hi all ,
I setup my email account and password in the "Security / Email "

every record updated , it was sent automatically by system.

But I have a little problem ,

my company force us change email password after every three months

if password be changed , where I can find the configuration or have any easy way to change password ?

Does any one can support ?
Thansk your great supports.
Grass

Sergey Kornilov admin 12/8/2010

Grass,
here is how you can do this.

  1. you need to add a new field to login table that stores the date of the last password change. Default value is now().
  2. In BeforeLogin event you need to find the number of days since the last password change. If it's greater than 90 you should not allow to login.
  3. In AfterSuuccessfulLogin event you also need to calculate the number of days since the last password change and if this number is between 83 and 90 redirect user to change password page saying how many days he has left. Once password changed you reset the date of the last password change to the current date.

N
netgrass author 12/9/2010



Grass,
here is how you can do this.

  1. you need to add a new field to login table that stores the date of the last password change. Default value is now().
  2. In BeforeLogin event you need to find the number of days since the last password change. If it's greater than 90 you should not allow to login.
  3. In AfterSuuccessfulLogin event you also need to calculate the number of days since the last password change and if this number is between 83 and 90 redirect user to change password page saying how many days he has left. Once password changed you reset the date of the last password change to the current date.


WoW...
It it a big job to me , but I will try to fix this problem.
Thanks for your support !
Net