mirror of
https://github.com/simple-login/app.git
synced 2025-10-10 15:28:09 +08:00
show include_sender_in_reverse_alias as checked if user hasn't set any value
This commit is contained in:
parent
811b33a56a
commit
a40bbe74fe
2 changed files with 3 additions and 1 deletions
|
@ -321,7 +321,8 @@
|
||||||
<input type="hidden" name="form-name" value="sender-in-ra">
|
<input type="hidden" name="form-name" value="sender-in-ra">
|
||||||
<div class="form-check">
|
<div class="form-check">
|
||||||
<input type="checkbox" id="include-sender-ra" name="enable"
|
<input type="checkbox" id="include-sender-ra" name="enable"
|
||||||
{% if current_user.include_sender_in_reverse_alias %} checked {% endif %} class="form-check-input">
|
{# todo: remove current_user.include_sender_in_reverse_alias is none condition #}
|
||||||
|
{% if current_user.include_sender_in_reverse_alias is none or current_user.include_sender_in_reverse_alias %} checked {% endif %} class="form-check-input">
|
||||||
<label for="include-sender-ra">Include sender address in reverse-alias</label>
|
<label for="include-sender-ra">Include sender address in reverse-alias</label>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-outline-primary">Update</button>
|
<button type="submit" class="btn btn-outline-primary">Update</button>
|
||||||
|
|
|
@ -194,6 +194,7 @@ def fake_data():
|
||||||
intro_shown=True,
|
intro_shown=True,
|
||||||
fido_uuid=None,
|
fido_uuid=None,
|
||||||
)
|
)
|
||||||
|
user.include_sender_in_reverse_alias = None
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
user.trial_end = None
|
user.trial_end = None
|
||||||
|
|
Loading…
Add table
Reference in a new issue