implement cardlogin with token

This commit is contained in:
Kai Jan Kriegel 2023-02-08 18:58:14 +01:00
parent 00f90c7314
commit 49fa24f1f9

View File

@ -32,7 +32,7 @@ impl SessionCallback for Callback {
) -> Result<(), SessionError> { ) -> Result<(), SessionError> {
if let Some(authid) = context.get_ref::<AuthId>() { if let Some(authid) = context.get_ref::<AuthId>() {
request.satisfy_with::<FabFireCardKey, _>(|| { request.satisfy_with::<FabFireCardKey, _>(|| {
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 let kv = user
.userdata .userdata
.kv .kv