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 {