Skip to content

Commit

Permalink
oidc: back out email change for now
Browse files Browse the repository at this point in the history
  • Loading branch information
osresearch committed Dec 1, 2022
1 parent b186fcf commit 1453f5a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions bookwyrm/templates/preferences/edit_user.html
Expand Up @@ -51,14 +51,9 @@ <h2 class="title is-4">{% trans "Profile" %}</h2>
</div>
<div class="field">
<label class="label" for="id_email">{% trans "Email address:" %}</label>
{% if oidc_enabled %}
<!-- email is not editable when OIDC is enabled -->
{{ user.email }}
{% else %}
{{ form.email }}
{{ form.email }}

{% include 'snippets/form_errors.html' with errors_list=form.email.errors id="desc_email" %}
{% endif %}
{% include 'snippets/form_errors.html' with errors_list=form.email.errors id="desc_email" %}
</div>
</div>
</section>
Expand Down

0 comments on commit 1453f5a

Please sign in to comment.