Hi,
we add users to Sphinx in back-office, and we want them change their password at first access. The flow could be:
-
our software add a user with a generated password, and send a mail to user (OnUserCreated event doesn't get fired for back-office added users, i think that it's intentional). The mail contains userid and password.
-
the user logs in to our software via Sphinx
-
our software has to discover in some way if it's the first time that a user has logged in. If yes, our software shows immediately a form that the user will use to change the password
-
the user enters current password (for security), and new password
-
the software checks if the current password is correct, via CheckPassword
-
the software requests a password change token via GeneratePasswordChangeToken
-
the software change the password, via ChangePassword
Is this the best flow ? Am i missing some point ?
Thank you, ciao !
Paolo