Email Addresses as User Names in ASP.NET Identity

It’s common for web applications to use email addresses instead of user names to distinguish users. However, if you are using ASP.NET Identity, you have probably noticed that it has UserName built into the IUser interface. Since Identity assumes that this is the distinguishing field for the user, it’s not crazy to think that it might be a good place to drop the email address. In order to have Identity allow an email address in this field, you will need to write a custom IIdentityValidator....

November 10, 2013

Email Address in MVC 5 Google Authentication

I’m not proud to admit that I spent hours trying to figure out this very simple problem. The goal was simple: when a user logs into my web application using Google authentication, I want to be able to grab their email address so I can store it as part of their user profile. As expected, this is very simple. I’m assuming you’ve already enabled Google authentication by uncommenting app.UseGoogleAuthentication() in your Startup....

November 9, 2013

Ctrl+Alt+Arrow Flips My Screen

If this is happening to you, it could be because you are using the Intel HD Graphics drivers. You’ll certainly notice this issue if you use Sublime Text since it uses the same key combination to expand the multiline editing. To resolve the issue you can either change Intel’s keys or turn them off entirely. Right click on you desktop and select Graphics Properties in the context menu. Select Options...

October 19, 2013

Windows Automatic Log On

I have a few applications installed on my home server that are user-level applications, meaning that a user must be logged on in order for the application to start. I don’t want to have to manually log on ever time my server restarts, so I set up automatic log on for the server. Here’s how to do it. Press Windows Key + R to launch the run dialog. Type in netplwiz and click OK....

September 23, 2013

Windows Secure Logon

You may have noticed that before you log on to you office PC that you are required to press CTRL+ALT+DELETE before entering you user name and password. Apparently, this is actually a security feature. According to this Windows support article (which this post is based on), [w]hen secure logon is enabled, no other program (such as a virus or spyware) can intercept your user name and password as you enter it....

September 23, 2013