diff options
author | metamuffin <metamuffin@disroot.org> | 2023-09-25 17:42:15 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-09-25 17:42:15 +0200 |
commit | 7efece270151d8a22e3d5f209cf9707d989c4ac5 (patch) | |
tree | bf6fe4e1433b0f83676a07c5924c53ca0a403aa0 /server/src/routes/ui/account | |
parent | 95125ad3a02eb561a41d8b046876cc9a375feb8d (diff) | |
download | jellything-7efece270151d8a22e3d5f209cf9707d989c4ac5.tar jellything-7efece270151d8a22e3d5f209cf9707d989c4ac5.tar.bz2 jellything-7efece270151d8a22e3d5f209cf9707d989c4ac5.tar.zst |
move deps to workspace and update rocket to master
Diffstat (limited to 'server/src/routes/ui/account')
-rw-r--r-- | server/src/routes/ui/account/session/guard.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/routes/ui/account/session/guard.rs b/server/src/routes/ui/account/session/guard.rs index 19d68ad..ae1ebd3 100644 --- a/server/src/routes/ui/account/session/guard.rs +++ b/server/src/routes/ui/account/session/guard.rs @@ -52,7 +52,7 @@ impl<'r> FromRequest<'r> for Session { Ok(x) => Outcome::Success(x), Err(e) => { warn!("authentificated route rejected: {e:?}"); - Outcome::Forward(()) + Outcome::Forward(Status::Unauthorized) } } } @@ -77,7 +77,7 @@ impl<'r> FromRequest<'r> for AdminSession { } Err(e) => { warn!("authentificated route rejected: {e:?}"); - Outcome::Forward(()) + Outcome::Forward(Status::Unauthorized) } } } |