1
0
Fork 0
mirror of https://git.42l.fr/neil/sncf.git synced 2024-04-28 04:02:47 +02:00

more verbose debug on token fail

This commit is contained in:
bleh 2020-08-22 12:16:25 +02:00
parent be19e37cb7
commit fc32720003

View file

@ -119,7 +119,8 @@ pub async fn forward_login(
// check if the provided token seems valid. If not, early return.
if !check_token(&params.token) {
debug("Incorrect admin token given.");
debug("Incorrect admin token given in params.");
debug(&format!("Token: {:#?}", params.token));
return Err(crash(get_lang(&req), "error_dirtyhacker"));
}
@ -180,7 +181,8 @@ pub async fn forward_register(
CONFIG.sncf_url, &admin_token
)));
} else {
debug("Incorrect admin token given.");
debug("Incorrect admin token given in cookies.");
debug(&format!("Token: {:#?}", &admin_token));
return Err(crash(lang, "error_dirtyhacker"));
}
}