aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/account
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-08-01 15:24:09 +0200
committermetamuffin <metamuffin@disroot.org>2023-08-01 15:24:09 +0200
commit551e62a6012284823d6b22a9257c3fae07de7fd9 (patch)
tree506c20d23a73b57acaa19f3abfa00ec5cc16a315 /server/src/routes/ui/account
parentdbb8c1c2f0035ea41224dec319a996b89e13ec84 (diff)
downloadjellything-551e62a6012284823d6b22a9257c3fae07de7fd9.tar
jellything-551e62a6012284823d6b22a9257c3fae07de7fd9.tar.bz2
jellything-551e62a6012284823d6b22a9257c3fae07de7fd9.tar.zst
store parent node and show "go up" button
Diffstat (limited to 'server/src/routes/ui/account')
-rw-r--r--server/src/routes/ui/account/session/guard.rs4
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 58dfe01..c6f5c29 100644
--- a/server/src/routes/ui/account/session/guard.rs
+++ b/server/src/routes/ui/account/session/guard.rs
@@ -3,7 +3,7 @@
which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
Copyright (C) 2023 metamuffin <metamuffin.org>
*/
-use super::{token, Session};
+use super::Session;
use crate::{database::Database, routes::ui::error::MyError};
use anyhow::anyhow;
use log::warn;
@@ -25,7 +25,7 @@ impl Session {
.or(req.cookies().get("session").map(|cookie| cookie.value()))
.ok_or(anyhow!("not logged in"))?;
- username = token::validate(token)?;
+ username = super::token::validate(token)?;
};
#[cfg(feature = "bypass-auth")]