Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

Custom CreateIdentity

$
0
0

Hi,

I am new to Microsoft.AspNet.Identity. I took asp.net website from vs2013 templates. I got inbuilt Login controls, methods.

But I want to customize it. I have used entity framework 6. I have different field name in my user table so I'm getting error.

var identity = manager.CreateIdentity(user, DefaultAuthenticationTypes.ApplicationCookie);

Here I'm passing my custom table entity, but getting null exception.

Please help and give any reference link where custom identity methods given.

Thanks and REgards,
Suraj Joshi.


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>