How to Sign up using Username AND email and sign in with username OR email using Azure AD B2C local account?
I tried this sample but I realized that when I signed up with a username, I can only sign in with username.
But I want to sign in with either email or username .
Is this possible by entering username and email to signInNames.username
and signInNames.emailAddress
? And how can I do that? (I read this .)
Also, If you know a better way, please help me.
Yes, you can.
You add both to the identity collection .
There are examples of adding identities here .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.