Fix Auth0 500 error when not configured (Issue #5)

- Add check for AUTH0 credentials before attempting login
- Show friendly error message if Auth0 not configured
- Hide Auth0 button on login page when not configured
- Add try/catch for auth0.authorize_redirect() failures

Fixes #5
This commit is contained in:
2025-10-11 23:40:48 -05:00
parent 6a1834bbd2
commit b0b9a9e912
2 changed files with 19 additions and 4 deletions

View File

@@ -48,6 +48,7 @@
<span>or</span>
</div>
{% if auth0_configured %}
<div class="social-auth-buttons">
<a href="{{ url_for('auth0_login') }}" class="social-btn auth0-btn">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
@@ -56,6 +57,7 @@
Continue with Auth0
</a>
</div>
{% endif %}
<div class="auth-footer">
<p>Don't have an account? <a href="{{ url_for('signup') }}">Sign up</a></p>