📢 Moderators Needed 🚀

Moderators are needed with resources to post or have access to resources to post. Submit an application to be considered.
X

RSS Passkeys are not deleted when a user

  • Thread starter Thread starter Xon
  • Start date Start date
X

Xon

Guest
Guest or Bot
XF\Service\Passkey\ManagerService::getPasskeyUser() can return null, which will cause internal server errors due to various login methods requiring a user entity.

The validate function should be checking that the user exists, or the simple way would be to add ->with('User', true) when fetching passKey record.

ie something like:
PHP:

Code:
$this->passkey = \XF::app()->finder(PasskeyFinder::class)
->with('User', true)
->where('credential_id', $credentialId)
->fetchOne();
...

Read more

Continue reading...
 
Similar content Most view View more
Back
Top