allauth/templates/mfa/webauthn/snippets/login_script.html
raw| 1 | {% include "mfa/webauthn/snippets/scripts.html" %} |
| 2 | <form id="mfa_login" action="{% url 'mfa_login_webauthn' %}" method="post"> |
| 3 | {% csrf_token %} |
| 4 | {{ redirect_field }} |
| 5 | <input type="hidden" name="credential" id="mfa_credential"> |
| 6 | </form> |
| 7 | <script data-allauth-onload="allauth.webauthn.forms.loginForm" type="application/json">{ |
| 8 | "ids": { |
| 9 | "login": "passkey_login", |
| 10 | "credential": "mfa_credential" |
| 11 | } |
| 12 | } |
| 13 | </script> |