예제 #1
0
 private static bool SetIsLoggedIn(UserDataFetcher UDF, bool IKnowThatThisFunctionMustGoAfterSetCurrentUser = true)
 {
     if (!InputValidator.ValidateId(UDF.GetId()))
     {
         return(error.SetErrorAndReturnFalse(ErrorCode.USER_NOT_FOUND));
     }
     if (CurrentUser.isLoggedIn)
     {
         UserDataPusher.PushSessionFileIsLoggedOut(false);
         return(true);
     }
     return(false);
 }
예제 #2
0
 public static bool SetLoggedOut()
 {
     //always true because we do not care if user whether user is valid or not
     UserDataPusher.PushSessionFileIsLoggedOut(true);
     return(true);
 }