Update password upon login
Function: Update password upon login
This action allows you to securely change the password for the user who is currently attempting to log in. It's typically used in scenarios like a "Forgot Password" flow or when a user needs to reset their password for security reasons.
Input
- Password: The new password you want to set for the user. This is a secure text field, meaning the characters you type will be hidden. This input is required.
Output
This action does not produce a direct output value that can be stored in a variable. Its primary effect is to update the user's password in the system.
Execution Flow
Real-Life Examples
Here are some examples of how you might use the "Update password upon login" action:
Example 1: User resets their forgotten password
A user has forgotten their password and goes through a "Forgot Password" process. After verifying their identity (e.g., via email link), they are prompted to enter a new password.
- Inputs:
- Password:
MyNewSecureP@ssw0rd!
- Password:
- Result: The user's password is successfully updated to
MyNewSecureP@ssw0rd!
, allowing them to log in with this new credential.
Example 2: Administrator forces a password reset for a user
An administrator needs to reset a user's password for security reasons. They trigger this action as part of an administrative workflow.
- Inputs:
- Password:
TempP@ssw0rd123
- Password:
- Result: The user's password is changed to
TempP@ssw0rd123
. The administrator would then typically communicate this temporary password to the user, instructing them to change it upon their next login.
Example 3: Attempting to update password without providing one
A user is on the password reset screen but accidentally clicks "Update" without typing anything into the new password field.
- Inputs:
- Password: (empty)
- Result: An error message appears, indicating that a password must be provided, and the user's password remains unchanged.