Stay Logged in as Current User After Creating a New User Account



I am creating a user account with an email ID and password, and I have used the signup workflow because the user’s password is not visible in the database. However, after creating a new user, the system automatically redirects me to the newly created user’s account. For example, if I am logged in as ‘Jenil’ and create an employee named ‘Akshay’ with Akshay’s email ID and password, the system switches to Akshay’s account after creation. I don’t want this to happen—I want to stay logged in as ‘Jenil’ and not be redirected to the new user’s account.

How can I achieve this? Can anyone help me with this issue?

@boston85719 can you help me?

‘Sign the User up’ always signs up the current User and logs them in.

If you want to create an account for someone else, you need to use the action ‘Create an account for someone else’.


So what will be the password if the user(which i was created) want to login in the app

@adamhholmes

They won’t have a password at this point.

You need to either set a temporary password - then Email the user with instructions on how to change it, or send a ‘Reset password’ email to the User so that can set their password via an email link.





I have added this workflow to getting email for password reset. So i got the link in a mail after a 4-5 minutes. But here after clicking on confirm button nothing is happening after entering the New password and confirm password. So what can be the issue?


Here in the workflow of confirm button what should i add?

@adamhholmes

Well, you need to add a ‘reset password’ action to your workflow for a start.

And then either a redirect to your login page, or show your login popup/screen etc. so the user can log in.

Hi, @adamhholmes


Here what should i add in password and in Confirmation.

In ‘Password’ enter the value from your Password input.

In ‘Confirmation’ enter the value from your Password Confirmation input.

Okay Done. Thank you so much @adamhholmes

1 Like

This topic was automatically closed after 14 days. New replies are no longer allowed.