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); }
public static bool SetLoggedOut() { //always true because we do not care if user whether user is valid or not UserDataPusher.PushSessionFileIsLoggedOut(true); return(true); }