{#- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -#} {% set hide_left_bar = True %} {% extends "allura:templates/user_account_base.html" %} {% block title %}{{c.user.username}} / Preferences{% endblock %} {% block header %}User Preferences for {{c.user.username}}{% endblock %} {% block content %} {% do g.register_js('js/jquery.lightbox_me.js') %} {{ super() }}

Preferences

{% block info %}
Username: {{ c.user.username }}

My profile and my projects

Activity I follow

Set avatar icon

{% if h.asbool(tg.config.get('auth.allow_user_to_disable_account', False)) %}

Disable account

{% endif %}
{% endblock info %} {% block edit_prefs_form %} {% if h.asbool(tg.config.get('auth.allow_edit_prefs', True)) %}
General Settings
{{lib.submit_button('Save')}}
{{lib.csrf_token()}}
Email addresses
{% include 'allura:templates/update_emails_form.html' %} {{lib.hidden_field('password', '')}}
{{c.enter_password.display(content='

Enter password

'|safe)}} {% endif %} {# allow_edit_prefs #} {% endblock edit_prefs_form %} {% block password_change_form %} {% if h.asbool(tg.config.get('auth.allow_password_change', True)) %}
Change Password {{ c.password_change_form.display() }}
{% endif %} {% endblock %} {% block multifactor %} {% if h.asbool(tg.config.get('auth.multifactor.totp', False)) %}
Multifactor Authentication

Multifactor authentication is currently {% set user_multifactor = c.user.get_pref('multifactor') %} {% if user_multifactor %} enabled {%- else -%} disabled {%- endif -%} .

{% if user_multifactor %} Regenerate multifactor key (e.g. for a new phone). {% else %} Set up multifactor authentication. {% endif %}

{% if user_multifactor %}

View existing configuration

View recovery codes

Disable

{{ lib.csrf_token() }}
{% endif %}
{% endif %} {% endblock %} {% block upload_key_form %} {% if h.asbool(tg.config.get('auth.allow_upload_ssh_key', False)) %}
Upload ssh public key {{ c.upload_key_form.display() }}
{% endif %} {% endblock %} {% block user_messages_form %} {% if h.asbool(tg.config.get('auth.allow_user_messages_config', True)) %}
User Messages


{{ lib.csrf_token() }}
{% endif %} {% endblock %}
{% endblock %} {% block extra_css %} {{ super() }} {% endblock %} {% block extra_js %} {% if h.asbool(tg.config.get('auth.allow_edit_prefs', True)) %} {# js to ask for a current password on the email form #} {% endif %} {% endblock %}