{% extends "base.html" %} {% block title %}{{ _('Preferences') }} — {{ service_name }}{% endblock %} {% block sidebar %} {% endblock %} {% block content %}
| {{ _('Username / Email') }} | {{ _('Authentication Method')}} | |
|---|---|---|
| {{authentication.login.get('login', authentication.login.get('description', ''))}} | {{ {'ldap': 'LDAP', 'email': _('Email'), 'other': _('Other'), 'fido2_passkey': _('FIDO2 Passkey')}[authentication.type.name.lower()] }} | |
{{ _('Note:')}} {{ _('API tokens are an authentication method for use with the HTTP API.')}}
| {{ _('Description') }} | ||
|---|---|---|
| {{ authentication.login['description'] }} | {{ _('View Log')}} | |
{{ _('Note:')}} {{ _('API access tokens are short-lived tokens for the use by interactive applications or scripts to authenticate with the HTTP API.')}}
| {{ _('Description') }} | {{ _('Expiration Datetime') }} | ||
|---|---|---|---|
| {{ authentication.login['description'] }} | {{ authentication.login['expiration_utc_datetime'] | babel_format_datetime }} | {{ _('View Log')}} |
| {{ _('Description') }} | |
|---|---|
| {% if method.data.description %} {{ method.data.description }} {% elif method.data.type == 'totp' %} {{ _('TOTP-based Two-Factor Authentication') }} {% elif method.data.type == 'fido2_passkey' %} {{ _('FIDO2 Passkey') }} {% else %} {{ _('Unknown Two-Factor Authentication Method') }} {% endif %} |
{{ _('Note:')}} {{ _('Webhooks allow you to subscribe to the object log, as described in the documentation.')}}
| {{ _('Name') }} | {{ _('Address') }} | {{ _('Last Contact') }} | |
|---|---|---|---|
| {{ webhook.name }} | {{ webhook.target_url }} | {% if not webhook.last_contact %}—{% else %}{{ webhook.last_contact }}{% endif %} |
|
{{ _('Note:')}} {{ _('%(service_name)s will notify you about various events. By default, these notifications will be sent using the %(service_name)s notification system, but you can also chose to receive them via email or decide to ignore some notification types.', service_name=service_name) }}
{{ _('Note:') }} {{ _('These permissions will be used for objects that you create in the future. To change the permissions for an already existing object, please use the Edit permissions button on the object\'s site.') }}
{% set user_may_edit = not current_user.is_readonly %} {% set form_url = url_for('.user_preferences', user_id=current_user.id) %} {% set permissions_form = default_permissions_form %} {% set fixed_user_permissions = {current_user.id: Permissions.GRANT} %} {% set show_administrators = True %} {% set show_instrument_scientists = True %} {% set show_all_users = True %} {% set read_permissions_description = _('Permission to view objects and their properties, files and comments.') %} {% set write_permissions_description = _('Permission to edit objects and their properties and add files and comments. Includes Read permissions.') %} {% set grant_permissions_description = _('Permission to grant permissions to other users. Includes Write permissions.') %} {% include "permissions/permissions.html" %}