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

Am having error with authentication code

$
0
0
Am having error on this line of code of my authentication,

if (user. Identity.Isauthenticated)
{
var username = membership. GetUser (User. Identity.Name).ProviderUserKey;

}
Bit if I comment on the code below it will be working very fine.:

var username = membership. GetUser (User. Identity.Name).ProviderUserKey;

What what's the solution?

Viewing all articles
Browse latest Browse all 4737

Trending Articles



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