{% extends "base.html" %} {% block content %}

Login History

Review your recent login activity. If you see any suspicious activity, please change your password immediately.

{% if locations %}
{% for location in locations %} {% endfor %}
Date & Time Location IP Address Device Status
{{ location.login_time.strftime('%Y-%m-%d') }}
{{ location.login_time.strftime('%H:%M:%S UTC') }}
{{ location.location_display }}
{% if location.coordinates %} {{ "%.4f"|format(location.latitude) }}, {{ "%.4f"|format(location.longitude) }} {% endif %}
{{ location.ip_address }} {% if location.user_agent %} {% if 'Chrome' in location.user_agent %} Chrome {% elif 'Firefox' in location.user_agent %} Firefox {% elif 'Safari' in location.user_agent %} Safari {% elif 'Edge' in location.user_agent %} Edge {% else %} Unknown {% endif %} {% if 'Mobile' in location.user_agent or 'Android' in location.user_agent or 'iPhone' in location.user_agent %} {% else %} {% endif %} {% else %} Unknown Device {% endif %} {% if location.is_approved %} Trusted {% if location.approved_at %}
Approved: {{ location.approved_at.strftime('%Y-%m-%d %H:%M') }} {% endif %} {% elif location.is_suspicious %} Suspicious
Pending approval {% else %} Unknown {% endif %}
{% if locations|length == 50 %}
Showing the most recent 50 login attempts. Older entries are automatically archived.
{% endif %} {% else %}
No Login History

This appears to be your first login, or login tracking was recently enabled.

{% endif %}
Security Features
  • Automatic location tracking
  • Suspicious login detection
  • Email alerts for new locations
  • Two-factor authentication
Security Tips
  • Review this page regularly
  • Report suspicious activity
  • Use strong, unique passwords
  • Keep your devices secure
{% endblock %} {% block scripts %} {% endblock %}