From 49fa24f1f928aaf7921aa2690b1d8f646ae83b3b Mon Sep 17 00:00:00 2001 From: Kai Jan Kriegel Date: Wed, 8 Feb 2023 18:58:14 +0100 Subject: [PATCH] implement cardlogin with token --- bffhd/authentication/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bffhd/authentication/mod.rs b/bffhd/authentication/mod.rs index f40fc3a..c268a96 100644 --- a/bffhd/authentication/mod.rs +++ b/bffhd/authentication/mod.rs @@ -32,7 +32,7 @@ impl SessionCallback for Callback { ) -> Result<(), SessionError> { if let Some(authid) = context.get_ref::() { request.satisfy_with::(|| { - let user = self.users.get_user(authid).ok_or(CallbackError::NoValue)?; + let user = self.users.get_user_by_token(authid).ok_or(CallbackError::NoValue)?; let kv = user .userdata .kv