Force user to change password on next login?

We are setting up a new instance of our software, and will create users with temporary passwords. Are there any recipees or modules showing how to force a user to change their password after login?

With Accounts.onCreateUser server side, you add a flag to the user’s profile. Client side, with Accounts. onLogin you check that flag and if it’s set, you route your application to your password change route. Once done, you simply use a method to remove the flag.

1 Like

Good suggestiin, thanks.

I just found the Accounts.sendEnrollmentEmail method. I will try to build a user invitation flow.

1 Like