public string GetUserNameFromOpenAuth(string openAuthProvider, string openAuthId) { ExtendedMembershipProvider provider = VerifyProvider(); int userId = provider.GetUserIdFromOAuth(openAuthProvider, openAuthId); if (userId == -1) { return(null); } return(provider.GetUserNameFromId(userId)); }
public string GetUserNameFromOpenAuth(string openAuthProvider, string openAuthId) { ExtendedMembershipProvider provider = VerifyProvider(); if (openAuthProvider.Equals("trello", StringComparison.OrdinalIgnoreCase)) { return(openAuthId); } int userId = provider.GetUserIdFromOAuth(openAuthProvider, openAuthId); if (userId == -1) { return(null); } return(provider.GetUserNameFromId(userId)); }