Skip to content

Commit

Permalink
fix(Tinebase) fido2 not working on mainscreen areaLockedException
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusweiss committed Oct 8, 2024
1 parent 3b2e911 commit b7d95d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions tine20/Tinebase/Model/MFA/WebAuthnUserConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ public function updateUserOldRecordCallback(Tinebase_Model_FullUser $newUser, Ti
}
}

public function toFEArray(): array
{
$user = Tinebase_Core::getUser();
return [
'username' => $user ? $user->accountLoginName : '',
];
}

/**
* holds the configuration object (must be declared in the concrete class)
*
Expand Down
2 changes: 1 addition & 1 deletion tine20/Tinebase/js/AreaLocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class AreaLocks extends Ext.util.Observable {
this.providerInstances[key] = new providerClass(_.assign({
areaName: areaName,
mfaDevice: selectedDevice
}, opts))
}, opts, _.get(selectedDevice, 'config', {})))
}
if (this.providerInstances[key].mfaDevice !== selectedDevice) {
this.providerInstances[key].mfaDevice=selectedDevice;
Expand Down

0 comments on commit b7d95d5

Please sign in to comment.