# Direct Login after signup

**URL:** <https://community.auth0.com/t/direct-login-after-signup/9080>\
**Category:** Get Help\
**Tags:** reset-password, signup, management-api, login\
**Created:** [December 29, 2017, 4:38am UTC](https://community.auth0.com/t/direct-login-after-signup/9080 "2017-12-29T04:38:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tushar.gaurav](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tushar.gaurav/32/8620_2.png) [@tushar.gaurav](https://community.auth0.com/u/tushar.gaurav)\
**Post date:** [December 29, 2017, 4:38am UTC](https://community.auth0.com/t/direct-login-after-signup/9080/1 "2017-12-29T04:38:51Z")

</div>

Need suggestions on this scenario.  
There are two kinds of users in my application.  
First type of user - who can set their passwords while signup.  
– User comes to the site and enters the information. I am setting a token(generated at backend) in user\_metadata. Which I am appending to verification\_email link.  
In the mail I get the same link, which doesn’t verify the email once clicked but redirects to my domain with token.  
There I update auth0 with email\_verified as true and logs him in using the token.  
Is this the right approach as I didn’t get any other method to direct login after signup.

Second type of user - who can not set their password while signup.(Gets registered through api.). I need to show a create password page once user clicks on the email link.  
To make auth0 signup api work, I am setting a default password for these users and follow the above approach. So after redirection from the email link , again I update email\_verify as true, logs in the user, redirects to reset password page(Restrict access to only this page until email is verified).  
Using the above approach I am able to achieve my requirements. But want to know, is this the right one or not.  
If not Please suggest.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/direct-login-after-signup/9080/2 "2018-03-02T05:57:58Z")

</div>


