server: Correctly handle attempts to probe for password resets

This commit is contained in:
Valentin Tolmer 2024-10-28 16:38:14 +01:00 committed by nitnelave
parent 8f6c324de7
commit c8601b9169

View File

@ -657,5 +657,9 @@ where
web::resource("/reset/step2/{token}")
.route(web::get().to(get_password_reset_step2_handler::<Backend>)),
);
} else {
cfg.service(
web::resource("/reset/step1/{user_id}").route(web::post().to(HttpResponse::NotFound)),
);
}
}