Skip to content
Snippets Groups Projects
Commit 668bbc55 authored by lukasmatusiewicz's avatar lukasmatusiewicz
Browse files

Update PIResponse.php

parent a3abdaa1
No related branches found
No related tags found
No related merge requests found
......@@ -163,23 +163,19 @@ class PIResponse
$tmp->message = $challenge['message'];
$tmp->serial = $challenge['serial'];
$tmp->type = $challenge['type'];
if (isset($challenge['image']))
{
$tmp->image = $challenge['image'];
}
if (isset($challenge['attributes']))
{
$tmp->attributes = $challenge['attributes'];
// Search for the img
if ($challenge["attributes"]["img"])
{
$tmp->img = $challenge['attributes']['img'];
}
}
if ($tmp->type === "webauthn")
{
$t = $challenge['attributes']['webAuthnSignRequest'];
$tmp->webAuthnSignRequest = json_encode($t);
}
if ($tmp->type === "u2f")
{
$t = $challenge['attributes']['u2fSignRequest'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment