Username password hash setting

Mar 17, 2014 at 12:50 PM
Edited Mar 17, 2014 at 12:50 PM
I tried to set the UserName as my custom Firstname+ Lastname properties. It sets it ok. But when I try to log in fails. Is this because the password is hashed using the email as salt? any way I can override this to still use the email as hash at login time but use the username as username?

I am using Identity 2.0.0 beta1
Developer
Mar 18, 2014 at 1:35 AM
@AarifSaiyed: The password hash is independent of the email so that should not be the case. Do check if the correct user object is fetched from the database with UserManager.FindbyEmailAsync and UserManager.FindByUsernameAsync.
Mar 18, 2014 at 11:56 AM
Edited Mar 18, 2014 at 11:57 AM
AarifSaiyed wrote:
I tried to set the UserName as my custom Firstname+ Lastname properties. It sets it ok. But when I try to log in fails. Is this because the password is hashed using the email as salt? any way I can override this to still use the email as hash at login time but use the username as username?

I am using Identity 2.0.0 beta1
Fixed 18/03/2014
I had left a space for aesthetic purposes between the firstname and lastname fields. removing this space has resolved the issue.

Sorry @suhasj did not answer earlier.
Marked as answer by AarifSaiyed on 3/18/2014 at 3:57 AM