Bypass 2FA after successful login #72

Merged
pierre merged 6 commits from bypass_2fa_after_successful_login into master 2022-11-12 11:21:34 +00:00
Showing only changes of commit 46bf14025b - Show all commits

View File

@ -9,7 +9,7 @@ pub enum LoginResult {
AccountNotFound, AccountNotFound,
InvalidPassword, InvalidPassword,
AccountDisabled, AccountDisabled,
Success(User), Success(Box<User>),
} }
#[derive(Message)] #[derive(Message)]
@ -98,7 +98,7 @@ impl Handler<LoginRequest> for UsersActor {
return MessageResult(LoginResult::AccountDisabled); return MessageResult(LoginResult::AccountDisabled);
} }
MessageResult(LoginResult::Success(user)) MessageResult(LoginResult::Success(Box::new(user)))
} }
} }
} }