Skip to content

Instantly share code, notes, and snippets.

@Chenx221
Created March 17, 2024 09:19
Show Gist options
  • Save Chenx221/3e15384652207eb99652df13514ca789 to your computer and use it in GitHub Desktop.
Save Chenx221/3e15384652207eb99652df13514ca789 to your computer and use it in GitHub Desktop.
Yii2, Webauthn Framework (Part 3)
<h5>
<i class="fa-solid fa-key"></i>
Webauthn
</h5>
<div class="input-group" id="totp_area">
<input type="text" class="form-control" placeholder="New Name" aria-label="New Name" name="fido_name"
id="fido_name">
<?= Html::button('Add', ['id' => "webauthn_add", 'type' => 'button', 'class' => 'btn btn-primary btn-sm']) ?>
<?= Html::button('Verify', ['id' => "webauthn_verify", 'type' => 'button', 'class' => 'btn btn-primary btn-sm']) ?>
</div>
<div class="alert alert-success" role="alert" hidden>
<span id="webauthn_success"></span>
</div>
<div class="alert alert-danger" role="alert" hidden>
<span id="webauthn_error"></span>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment