aboutsummaryrefslogtreecommitdiff
path: root/server/src/request_info.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/request_info.rs')
-rw-r--r--server/src/request_info.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/request_info.rs b/server/src/request_info.rs
index 779b4e1..3a1023f 100644
--- a/server/src/request_info.rs
+++ b/server/src/request_info.rs
@@ -93,7 +93,7 @@ pub(super) fn accept_language<'a>(request: &'a Request<'_>) -> &'a str {
.unwrap_or("en")
}
-pub(super) async fn session_from_request(req: &Request<'_>) -> Result<Session, MyError> {
+pub(super) async fn user_from_request(req: &Request<'_>) -> Result<Session, MyError> {
if cfg!(feature = "bypass-auth") {
Ok(bypass_auth_session()?)
} else {
@@ -112,7 +112,7 @@ pub(super) async fn session_from_request(req: &Request<'_>) -> Result<Session, M
// jellyfin urlescapes the token for *some* requests
let token = token.replace("%3D", "=");
- Ok(token_to_session(&token)?)
+ Ok(token_to_user(&token)?)
}
}