aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-03-25 15:14:09 +0100
committermetamuffin <metamuffin@disroot.org>2025-03-25 15:14:09 +0100
commit7ef1b6952874a40373562aa610dc78a119a4f075 (patch)
tree4187a0dbea7dfde2801c89684991ea8b25680d2f
parenta8ae3dbfc35eaafce54d0a4384d51dbcfbde6c01 (diff)
downloadgnix-7ef1b6952874a40373562aa610dc78a119a4f075.tar
gnix-7ef1b6952874a40373562aa610dc78a119a4f075.tar.bz2
gnix-7ef1b6952874a40373562aa610dc78a119a4f075.tar.zst
openid: reauth if bad salt
-rw-r--r--src/modules/auth/openid.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/auth/openid.rs b/src/modules/auth/openid.rs
index ba45fe9..bad9c0c 100644
--- a/src/modules/auth/openid.rs
+++ b/src/modules/auth/openid.rs
@@ -24,7 +24,7 @@ use http::{
use http_body_util::BodyExt;
use hyper::{Response, StatusCode};
use hyper_util::rt::TokioIo;
-use log::{debug, info};
+use log::{debug, info, warn};
use percent_encoding::{
percent_decode, percent_decode_str, percent_encode, utf8_percent_encode, NON_ALPHANUMERIC,
};
@@ -97,7 +97,7 @@ impl Node for OpenIDAuth {
return Err(ServiceError::CustomStatic("salt sep invalid"));
}
} else {
- return Err(ServiceError::CustomStatic("salt invalid"));
+ warn!("salt invalid");
}
} else {
debug!("aead invalid");