Is there any site that show both OpenID and normal login on the same view? Most of the sites either have OpenID implementation or Normal Login implementation on different views.
I tried to do that, but it seems my code is very dirty, passing a blank username and password if using OpenID, otherwise OpenID will be blank but passed the username and password.
But then I lose the capability of verifying whether the user has entered the correct values, is there any best practice for me to do that?
Thanks a lot
Have you taken a look at NerdDinner? It’s an open source sample that includes the dual login screen that you’re asking for. It uses DotNetOpenAuth, so it should be easy to apply to your site as well.