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:
parent
be19e37cb7
commit
fc32720003
|
@ -119,7 +119,8 @@ pub async fn forward_login(
|
|||
|
||||
// check if the provided token seems valid. If not, early return.
|
||||
if !check_token(¶ms.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"));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue