Hello everyone,
I am curious if there is a way to run a one time script when a user logs in to change their password.
Idea is you have users that are given default passwords to login. When they login I noticed you can run a login script, so it would be nice to run a script that says change password that has the password screen and once they complete it will never run again, but I am guessing it can't be done or is extremely complicated.
I don't see any way to set a value to know they did this unless maybe you create a simple table and that the form gets the user ID and writes username to table and writes a 1 if they complete new password or a 0 if not and at each login the script reads the table and if value 1 it skips prompting to change password and prompts to change password for a value 0 or maybe you can't do anything until you change your password. Just thinking of an approach.
Simple thing is just run a script with message box that every time they login it say "don't forget to change your password on a regular basis and if this is your first login change password now" and two buttons being OK and Change Password, but that could get annoying I guess seeing it every time you login?
Thank you for any thoughts on this matter!
Paul
I am curious if there is a way to run a one time script when a user logs in to change their password.
Idea is you have users that are given default passwords to login. When they login I noticed you can run a login script, so it would be nice to run a script that says change password that has the password screen and once they complete it will never run again, but I am guessing it can't be done or is extremely complicated.
I don't see any way to set a value to know they did this unless maybe you create a simple table and that the form gets the user ID and writes username to table and writes a 1 if they complete new password or a 0 if not and at each login the script reads the table and if value 1 it skips prompting to change password and prompts to change password for a value 0 or maybe you can't do anything until you change your password. Just thinking of an approach.
Simple thing is just run a script with message box that every time they login it say "don't forget to change your password on a regular basis and if this is your first login change password now" and two buttons being OK and Change Password, but that could get annoying I guess seeing it every time you login?
Thank you for any thoughts on this matter!
Paul
Comment