fix: check for webauthn in 2fa user search

- Check for webauthn credentials in the user search when the two factor
filter is enabled.
- Resolves forgejo/forgejo#6524
This commit is contained in:
Gusted 2025-01-29 15:26:15 +01:00
parent fd285bfc4e
commit 83311c694c
No known key found for this signature in database
GPG key ID: FD821B732837125F
2 changed files with 5 additions and 7 deletions

View file

@ -222,7 +222,7 @@ func TestSearchUsers(t *testing.T) {
[]int64{1041, 37})
testUserSuccess(&user_model.SearchUserOptions{ListOptions: db.ListOptions{Page: 1}, IsTwoFactorEnabled: optional.Some(true)},
[]int64{24})
[]int64{24, 32})
}
func TestEmailNotificationPreferences(t *testing.T) {