SPContext.Current.Web.CurrentUser.LoginName
We had an issue where the SPContext.Current.Web.CurrentUser.LoginName displayed the incorrect (old) login for a user i.e. user loginname was changed. In most cases it works to run the migrateuser command to …