示例#1
0
 public static void Logout(this UserMetadata user)
 {
     if (user.IsActive())
     {
         AwfulWebRequest.ClearCredentials();
     }
 }
示例#2
0
 public static void MakeActive(this UserMetadata user)
 {
     if (!user.IsActive())
     {
         AwfulWebRequest.SetCredentials(user);
     }
 }