Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jul 2011
    Thanked 0 Times in 0 Posts

    Exclamation force password change

    Ok so I have successfully set up a password reset script that when clicked on send the user a new password, now i want to expand the login system and force the user to set a new password on next login, how would i do this?

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Thanked 4,735 Times in 4,697 Posts
    Put a field in the user table, along with the userid and password, that says "must reset password".

    Check for it at next login. If there, force the change of password and reset the flag.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts