Hello,
I'm trying to build an application and I've created a DB Table Users for Membership purposes.
What I'd like to do is allow two columns in that table, UserID or Email as the Username for Login.
This means an user would be able to login using either his ID or his Email.

Is this possible to do with the WebSecurity.Login method?

Yes, so long as the UserId and Email used are unique, otherwise you could login as someone else.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.