I am a newbie to PHP. I want to create a module in which the portal manager creates “Users” with a temporary password.
- Once user is created, that particular user should receive email with a link that expires in 24hrs.
- The Manager conveys the temporary password to user by some other means.
- If the User clicks email link within 24hrs, it should ask for temporary password, new password and have a confirm new password field.
- If temporary password is correct, then replace temporary password with new password in the database.
How should I implement this?
I can’t write it for you because I have no idea how your application is structured, but this would be the general approach I’d take:
Does that make sense or are any parts totally alien and need explained further?