Passkeys: Fix RP ID validation

This commit is contained in:
varjolintu 2024-03-11 16:39:40 +02:00 committed by Jonathan White
parent 8a4787278d
commit 5883f49f37
3 changed files with 14 additions and 10 deletions

View file

@ -630,7 +630,7 @@ QJsonObject BrowserService::showPasskeysRegisterPrompt(const QJsonObject& public
}
const auto excludeCredentials = credentialCreationOptions["excludeCredentials"].toArray();
const auto rpId = publicKeyOptions["rp"]["id"].toString();
const auto rpId = credentialCreationOptions["rp"].toObject()["id"].toString();
const auto timeout = publicKeyOptions["timeout"].toInt();
const auto username = credentialCreationOptions["user"].toObject()["name"].toString();
const auto user = credentialCreationOptions["user"].toObject();