zUnixorn
1 week ago
No known key found for this signature in database
GPG Key ID: BE3A9CAE3E8D0DA
1 changed files with
1 additions and
2 deletions
-
src/db/models/two_factor.rs
|
|
@ -242,8 +242,7 @@ impl TwoFactor { |
|
|
|
for webauthn_factor in webauthn_factors { |
|
|
|
// assume that a failure to parse into the old struct, means that it was already converted
|
|
|
|
// alternatively this could also be checked via an extra field in the db
|
|
|
|
let Ok(regs) = serde_json::from_str::<Vec<WebauthnRegistrationV3>>(&webauthn_factor.data) |
|
|
|
else { |
|
|
|
let Ok(regs) = serde_json::from_str::<Vec<WebauthnRegistrationV3>>(&webauthn_factor.data) else { |
|
|
|
continue; |
|
|
|
}; |
|
|
|
|
|
|
|