Start to create 2FA exemption after successful 2FA login
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
<!-- User name -->
|
||||
<div class="form-group">
|
||||
<label class="form-label mt-4" for="username">Username</label>
|
||||
<input class="form-control" id="username" type="text"
|
||||
<input class="form-control" id="username" type="text" autocomplete="nope"
|
||||
name="username" value="{{ u.username }}" required/>
|
||||
<div class="valid-feedback">This username is valid</div>
|
||||
<div class="invalid-feedback">This username is already taken.</div>
|
||||
@ -51,17 +51,27 @@
|
||||
|
||||
<!-- Enabled -->
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="enabled" id="enabled" {% if u.enabled %} checked="" {%
|
||||
endif %}>
|
||||
<input class="form-check-input" type="checkbox" name="enabled" id="enabled"
|
||||
{% if u.enabled %} checked="" {% endif %}>
|
||||
<label class="form-check-label" for="enabled">
|
||||
Enabled
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<!-- 2FA exemption after successful login -->
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="two_factor_exemption_after_successful_login"
|
||||
id="two_factor_exemption_after_successful_login"
|
||||
{% if u.two_factor_exemption_after_successful_login %} checked="" {% endif %}>
|
||||
<label class="form-check-label" for="two_factor_exemption_after_successful_login">
|
||||
Exempt user from 2FA authentication for an IP address after a successful login for a limited time
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<!-- Admin -->
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="admin" id="admin" {% if u.admin %} checked="" {% endif
|
||||
%}>
|
||||
<input class="form-check-input" type="checkbox" name="admin" id="admin"
|
||||
{% if u.admin %} checked="" {% endif %}>
|
||||
<label class="form-check-label" for="admin">
|
||||
Grant admin privileges
|
||||
</label>
|
||||
@ -80,7 +90,7 @@
|
||||
<input type="checkbox" class="form-check-input two-fact-checkbox"
|
||||
value="{{ f.id.0 }}"
|
||||
checked=""/>
|
||||
{{ f.name }} (<img src="{{ f.type_image() }}" alt="Factor icon" style="height:1em;" />
|
||||
{{ f.name }} (<img src="{{ f.type_image() }}" alt="Factor icon" style="height:1em;"/>
|
||||
{{ f.type_str() }})
|
||||
</label>
|
||||
</div>
|
||||
@ -190,6 +200,7 @@
|
||||
|
||||
form.submit();
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
{% endblock content %}
|
Reference in New Issue
Block a user