Replace Option<SecondFactor> with SecondFactor

This commit is contained in:
2022-04-19 17:56:53 +02:00
parent 5903ec2e8c
commit 9ff4392afb
4 changed files with 11 additions and 17 deletions

View File

@ -74,7 +74,7 @@
<fieldset class="form-group">
<legend class="mt-4">Two factor authentication</legend>
<strong>If you uncheck a factor, it will be DELETED</strong>
{% for f in u.two_factor.as_deref().unwrap_or_default() %}
{% for f in u.two_factor %}
<div class="form-check">
<label class="form-check-label">
<input type="checkbox" class="form-check-input two-fact-checkbox"