I am not sure how ASP.NET MVC 3 Authentication works out of the box, but I noticed two odd behaviors when I created a new MVC 3 Web Project. I did not make a single change. When I first ran it, I noticed I was signed in as a user from a previous project. So, I clicked Log Off, and then when I tried to login as ano开发者_开发技巧ther user (TestAdmin) IE gave me the message:
"Do you want Internet Explorer to remember your password for localhost?"
I would expect it to ask me to save the password for TestAdmin, not localhost. What's going on behind the scenes? How can I get it to use the User Account Name instead of the default "localhost"?
I am going to take the initiative to say there is no way to override this message without modifying the Internet Explorer browser executable or dependencies, and why would you want to?
If you think of this from a non-developer perspective, the functionality makes sense because someone will be asked, "Do you want to save your password for http://www.facebook.com?"
It would not make sense to the user if it used the application name to say something like, "Do you want to save your password for FacebookBuild3?"
精彩评论