Click here to Skip to main content
15,885,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,
Is there any way that when use log in to my application i can easily get the result that he is a regular user of that profile and he has posted 50 posts last months.
Using asp.net mvc
Thanks
Posted
Updated 11-Mar-14 4:50am
v2

1 solution

You could get the details from the Authentication result object.

See below

C#
AuthenticationResult userLoginDetails = OAuthWebSecurity.VerifyAuthentication(Url.Action("ExternalLoginCallback", new { ReturnUrl = returnUrl }));

string emailOrUserID= userLoginDetails.UserName;
string FullName= result.ExtraData["name"];
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900