{% extends 'base.html' %} {% block title %}My Profile{% endblock %} {% block content %}

My Profile

Account Information

Username

{{ current_user.username }}

Email

{{ current_user.email }}

Name

{% if current_user.first_name or current_user.last_name %} {{ current_user.first_name }} {{ current_user.last_name }} {% else %} Not provided {% endif %}

Member Since

{{ current_user.created_at.strftime('%B %d, %Y') }}

Admin Status

{% if current_user.is_admin %} Administrator Admin Dashboard {% else %} Regular User {% if not admin_exists %} Setup Admin {% endif %} {% endif %}

Dropbox Export Folder

{{ current_user.dropbox_export_path or '/QuizzicalBeats' }}

Account Actions

{% if current_user.is_admin %}

Spotify Connection Debug

{% if spotify_status == 'user' %} Using your Spotify account {% elif spotify_status == 'system' %} Using system Spotify account {% elif spotify_status == 'bearer' %} Using manual bearer token {% else %} No Spotify connection active {% endif %}

Dropbox Connection Debug

{% if current_user.dropbox_token and current_user.dropbox_token_expiry and current_user.dropbox_token_expiry > now %} Active Dropbox connection {% elif current_user.dropbox_token %} Dropbox token expired or expiring soon {% else %} No Dropbox connection active {% endif %}
{% endif %}

Connected Services

{% if current_user.is_admin %}

Spotify

{% if current_user.spotify_token %} Connected {% if current_user.spotify_id %} as {{ current_user.spotify_id }} {% endif %} {% else %} Not connected {% endif %}

{% if current_user.spotify_token %} Manage Connection {% else %} Connect Spotify {% endif %}
{% endif %}

Dropbox

{% if current_user.dropbox_id %} Connected {% if current_user.dropbox_id %} as {{ current_user.dropbox_id[:10] }}... {% endif %} {% else %} Not connected {% endif %}

{% if current_user.dropbox_id %}

{% if current_user.dropbox_token_expiry %} Token expires: {{ current_user.dropbox_token_expiry.strftime('%Y-%m-%d %H:%M') }} {% endif %}

{% else %} Connect Dropbox {% endif %}

Direct Spotify Access

Enter a Spotify bearer token for direct API access. This bypasses OAuth and allows immediate access to Spotify features.

Get a token from Spotify Developer Console

{% if session.get('access_token') %} {% endif %}

Audio Settings

Customize your audio preferences for quizzes.

Manage Audio Settings

Last Login

{% if current_user.last_login %} {{ current_user.last_login.strftime('%d %b %Y, %H:%M') }} {% else %} No login history {% endif %}

{% if current_user.is_admin %} {% endif %} {% endblock %} {% block scripts %} {% if current_user.is_admin %} {% endif %} {% endblock %}