mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2025-01-03 17:13:48 +01:00
implement cardlogin with token
This commit is contained in:
parent
00f90c7314
commit
49fa24f1f9
@ -32,7 +32,7 @@ impl SessionCallback for Callback {
|
||||
) -> Result<(), SessionError> {
|
||||
if let Some(authid) = context.get_ref::<AuthId>() {
|
||||
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
|
||||
.userdata
|
||||
.kv
|
||||
|
Loading…
Reference in New Issue
Block a user