{% extends "master.html" %} {% from "_formhelper.html" import render_bootstrap_field %} {% block title %}{{ user.user }}'s settings{% endblock %} {% set tag = "users"%} {% macro render_email(email, form, validated=True) %}
 {{ email.email }} {% if validated %}
{{ form.csrf_token }}
{% if email.email == user.default_email %} {% else %}
{{ form.csrf_token }} set as default
{% endif %} {% else %}
pending verification via email
{{ form.csrf_token }}
{% endif %}
{% endmacro %} {% block content %}
Basic Information
{{ user.user }}
{{ user.fullname }}
Email Addresses Add Email
{% for email in user.emails %} {{ render_email(email, form) }} {% endfor %} {% for email in user.emails_pending %} {{ render_email(email, form, validated=False) }} {% endfor %}
{% if config.get('LOCAL_SSH_KEY', True) %}
Authentication
{{ render_bootstrap_field(form.ssh_key) }}

{{ form.csrf_token }}

{% endif %}
User settings
{% for key in user.settings | sort %} {% if user.settings[key] in [True, False, 'y'] %}
{% else %}
{% endif %} {% endfor %}

{{ form.csrf_token }}

{% if config.get('PAGURE_AUTH')=='local' %} {% endif %}
API Keys

API keys are tokens used to authenticate you on pagure. They can also be used to grant access to 3rd party application to behave on all projects in your name.

These are your personal tokens; they are not visible to others.

These keys are valid for 60 days.

These keys are private, make sure to store in a safe place and do not share it.

{% if user.tokens %}
    {% for token in user.tokens %} {% if not token.project %}
  • {% if token.expired %} Expired since {{ token.expiration.date() }} {% else %} Valid until: {{ token.expiration.date() }}
    {{ form.csrf_token }}
    {% endif %}
  • {% endif %} {% endfor %}
{% endif %}
{% endblock %}