From c3f6c44abfd8c44b2db30a8ec3ca270cc3459ebb Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Wed, 24 Aug 2022 20:11:16 +0200 Subject: [PATCH] Remove a requirement --- src/controllers/admin/admin_keys_controller.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/controllers/admin/admin_keys_controller.rs b/src/controllers/admin/admin_keys_controller.rs index be7cd37..fff0be4 100644 --- a/src/controllers/admin/admin_keys_controller.rs +++ b/src/controllers/admin/admin_keys_controller.rs @@ -144,10 +144,7 @@ pub async fn auth_with_key(r: &mut HttpRequestHandler) -> RequestResult { )?; // Perform authentication - let state = get_wan().finish_passkey_authentication(&credentials, &state)?; - if !state.user_verified() { - r.forbidden("Invalid key! (user_verified = false)".to_string())?; - } + get_wan().finish_passkey_authentication(&credentials, &state)?; // Check key password (if any) if let Some(pass_hash) = key.password {