Rake tasks are scripts that allow you to retrieve, delete or update information on your Faspex server using the command line. This article describes a custom rake task available to force a password reset on user accounts.
You can reset a user account’s password which would force the user to change the password in order to access the account. With a rake task you can do this for an individual user or for all Faspex users.
The syntax is as following:
asctl faspex:rake custom:force_password_reset -- [options]
|short form||long form||description|
|-uusername||--user_name=username||account to reset password on|
|-a||--all||force password reset on all Faspex users|
|-h||--help||print out help information for this rake task|
The -a option forces a password reset for all Faspex users (not SAML and directory users).
To reset the password for user janedoe you would use the following:
asctl faspex:rake custom:force_password_reset -- --user_name=janedoe
Example output may look like the following:
Forcing password reset for janedoe - email@example.com