public static UserEntity Login(string username, byte[] passwordHash) { using (AuthLogic.Disable()) { UserEntity user = RetrieveUser(username, passwordHash); UserLogingIn?.Invoke(user); return(user); } }
public static void OnUserLogingIn(UserEntity user) { UserLogingIn?.Invoke(user); }