"Invalid username or password" when logging in using a password generated by a script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2024 04:03 AM
Is there a way to implement the following 1 to 3?
Please let me know.
1. Save the initial password created by the script in the password field in password format
2. Send an email with the initial password to the automatically created user
3. The automatically created user's ID and password can be used to log in for the first time (and then a password reset is requested)
-----------------Background of the question-----------------
I created a flow that uses Flow Designer to automatically create a user account based on the information entered by the user in the application form. (Create Flow.png)
The initial password for the user is created by a script. (Script Action.png)
- The test result of this action was successful, and the log confirming the password saving shows "Password saved successfully."
- The registration completion notice sent to the automatically created user also shows the initial password created.
- The initial password is created to ensure that it meets the password policy.
However, after creating a user automatically, when I try to log in using the user's ID and password, the message "User name or password is invalid" is displayed. (The user who attempted to log in was active, and lockout was False.)
The only possible cause I can think of is that the password I created was output as Type:String from the action and used for email notifications.
However, I don't know what settings I should change from the current state, and how.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2024 04:24 AM
Even when I changed the type of the output variable of the script step to "Password (1 way Encrypted)", I was unable to log in.