mirror of
https://git.42l.fr/neil/sncf.git
synced 2026-03-14 22:35:47 +01:00
more verbose debug on token fail
This commit is contained in:
parent
be19e37cb7
commit
fc32720003
1 changed files with 4 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue