# Email and password login, followed by SMS login

**URL:** <https://community.auth0.com/t/email-and-password-login-followed-by-sms-login/6304>\
**Category:** Get Help\
**Tags:** password, email, sms, login\
**Created:** [April 21, 2017, 1:12am UTC](https://community.auth0.com/t/email-and-password-login-followed-by-sms-login/6304 "2017-04-21T01:12:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pandinus.imperator](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pandinus.imperator/32/3311_2.png) [@pandinus.imperator](https://community.auth0.com/u/pandinus.imperator)\
**Post date:** [April 21, 2017, 1:12am UTC](https://community.auth0.com/t/email-and-password-login-followed-by-sms-login/6304/1 "2017-04-21T01:12:09Z")

</div>

Is it possible for a user to login with email and password, then logout, and then login again from the same device using sms authentication? Or will two different accounts be created?  
I’m using Android, and what I’m trying to do is to have a way to verify the phone number of a user that has already an account.

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [April 21, 2017, 10:39am UTC](https://community.auth0.com/t/email-and-password-login-followed-by-sms-login/6304/2 "2017-04-21T10:39:21Z")

</div>

When a user logs in with a passwordless connection, a new account is created for them. Your application would need to handle knowing the username/password user, then after SMS login, use [Account Linking](https://auth0.com/docs/link-accounts) to link to two accounts. Something along the lines of:

1. User logs in using username/password (DB connection)
2. Use passwordless to send sms. Application stores username/password user\_id.
3. Upon successful sms login, application performs [account linking](https://auth0.com/docs/link-accounts) of the username/pw + sms user.

---

<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:53am UTC](https://community.auth0.com/t/email-and-password-login-followed-by-sms-login/6304/3 "2018-03-02T05:53:24Z")

</div>


