0
shyamjith created
Hi,
I am using " _userManager.LoginAsync(usernameOrEmailAddress, password, tenancyName);" Method to login the application, which will accept both username and email address. but my requirement is to authenticate user only with Username and password not with Email and password, How do I do that?
1 Answer(s)
-
0
Hi,
You can check entered username before callling _userManager.LoginAsync in serverside and don't call _userManager.LoginAsync if it is a valid email address.
You can even do it on the client side before calling the server.
Have an answer to this question?
Log in
and write your answer.