mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-05 17:18:04 +02:00
Some more work on 2FA
This commit is contained in:
parent
2b6bdc71e9
commit
a8be1a3c30
3 changed files with 86 additions and 8 deletions
|
@ -97,6 +97,9 @@
|
|||
<div class="tab-pane" id="tabs-2fa">
|
||||
<h4 class="card-title">Two-Factor Authentication (2FA)</h4>
|
||||
<div class="card">
|
||||
{% if secret is defined %}
|
||||
<form action="{{route('activate2fa')}}" name="2fa" method="post">
|
||||
{{ csrf.field | raw }}
|
||||
<div class="card-body">
|
||||
<p>Set up 2FA for additional security. Scan the QR code with your authentication app and enter the provided code below to verify.</p>
|
||||
<!-- QR Code Placeholder -->
|
||||
|
@ -114,14 +117,20 @@
|
|||
<!-- Verification Code Input -->
|
||||
<div class="mb-3">
|
||||
<label for="verificationCode" class="form-label">Verification Code</label>
|
||||
<input type="text" class="form-control" id="verificationCode" placeholder="Enter code">
|
||||
<input type="text" class="form-control" id="verificationCode" name="verificationCode" placeholder="Enter code">
|
||||
<small class="form-text text-muted">
|
||||
Enter the code generated by your authentication app. This code verifies that your 2FA setup is working correctly. Once entered, click 'Save 2FA Settings' to activate two-factor authentication for your account.
|
||||
</small>
|
||||
</div>
|
||||
<!-- Save Button -->
|
||||
<button type="button" class="btn btn-primary">Save 2FA Settings</button>
|
||||
<button type="submit" class="btn btn-primary">Save 2FA Settings</button>
|
||||
</div>
|
||||
</form>
|
||||
{% else %}
|
||||
<div class="card-body">
|
||||
<p>2FA active</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane" id="tabs-webauthn">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue