{% extends "base.html" %} {% block title %}Edit User{% endblock %} {% block content %}

Edit User: {{ user.username }}

Back to Users
Username cannot be changed
{% if user.username == 'admin' %}
Admin user must remain active
{% endif %}
Leave blank to keep current password.
User will be prompted to change password when they next login
{% if user.username == 'admin' %}The primary admin user cannot be demoted{% else %}Administrators have full access to all functions including user management{% endif %}
Login Information
Failed Login Attempts: {{ user.failed_login_attempts }} {% if user.failed_login_attempts > 10 %} High {% endif %} {% if user.failed_login_attempts >= 50 %} Account Locked {% endif %}
Last Failed Login: {{ user.last_failed_login.strftime('%Y-%m-%d %H:%M:%S') if user.last_failed_login else 'Never' }}
Last Successful Login: {{ user.last_successful_login.strftime('%Y-%m-%d %H:%M:%S') if user.last_successful_login else 'Never' }}
{% if user.failed_login_attempts > 0 %}
Clear the failed login attempts counter for this user
{% endif %}
Cancel
{% endblock %} {% block scripts %} {% endblock %}