Finished Conditional UI

This commit is contained in:
Mohamed El-Kalioby
2022-10-16 19:43:14 +03:00
parent 0ddef51eaa
commit 52e307ef0e
5 changed files with 44 additions and 7 deletions

View File

@@ -33,7 +33,7 @@
{% csrf_token %}
<div class="form-group">
<div class="form-label-group">
<input type="text" id="inputUsername" name="username" class="form-control" placeholder="username" required="required" autofocus="autofocus">
<input type="text" id="inputUsername" name="username" class="form-control" placeholder="username" required="required" autofocus="autofocus" autocomplete="username webauthn">
<label for="inputUsername">Username</label>
</div>
</div>
@@ -45,8 +45,6 @@
</div>
<button class="btn btn-primary btn-block" type="submit">Login</button><br/>
<button class="btn btn-primary btn-block" type="button" onclick="authen()">Login By Security Key</button>
</form>
</div>
</div>
@@ -58,7 +56,9 @@
<!-- Core plugin JavaScript-->
<script src="{% static 'vendor/jquery-easing/jquery.easing.min.js'%}"></script>
{% include 'FIDO2/Auth_JS.html'%}
{% include 'FIDO2/FormFill.html' %}
{# {% include 'FIDO2/Auth_JS.html' %}#}
</body>
</html>