server: Correctly handle attempts to probe for password resets
This commit is contained in:
committed by
nitnelave
parent
8f6c324de7
commit
c8601b9169
@@ -657,5 +657,9 @@ where
|
|||||||
web::resource("/reset/step2/{token}")
|
web::resource("/reset/step2/{token}")
|
||||||
.route(web::get().to(get_password_reset_step2_handler::<Backend>)),
|
.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)),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user