Ask AI
Skip to main content

Update password upon login

Function: Update password upon login

This function allows you to securely change the password for the user who is currently trying to log in. It's typically used in scenarios where a user needs to set or reset their password as part of the login process.

Input

  • Password (Type: PASSWORD, Required: Yes) The new password you want to set for the current user. This field is mandatory and must contain a value.

Execution Flow

Real-Life Examples

Here are some practical ways you can use the "Update password upon login" function:

  1. First-Time User Setup:

    • Scenario: A new user logs in for the first time with a temporary password, and your application requires them to set a permanent one immediately.
    • Inputs:
      • Password: MySecureNewPassword123!
    • Result: The user's temporary password is replaced with MySecureNewPassword123!, and they will use this new password for all future logins.
  2. Forced Password Reset:

    • Scenario: After a security alert or a period of inactivity, your application might require users to reset their password before gaining full access.
    • Inputs:
      • Password: ResetPassword@2024
    • Result: The user's old password is invalidated, and their new password is set to ResetPassword@2024, which they must use to proceed.
  3. User Initiated Password Change During Login Flow:

    • Scenario: A user forgets their password and goes through a "Forgot Password" flow, which leads them to a screen to set a new password before completing their login.
    • Inputs:
      • Password: MyFavoritePetName#123
    • Result: The user's forgotten password is updated to MyFavoritePetName#123, allowing them to successfully log in with their new credentials.