when I set the AuthCookie like this
FormsAuthentication.SetAuthCookie(model.UserName, true);
the model.userName is actually the users email which is what uniquely identifies each user, then on my view when I use:
Welcome <strong> @User.Identity.Name</strong>!
it displays "Welcome [email protected]!, however I would like to user the user.firstname.
So, my question is, is it possible to implement a custom User.Identity or a custom Forms.SetAuthCookie that will allow me to use something like this on my view:
Welcome <strong> @User.Identity.FirstName</strong>!