Update AppImage

This commit is contained in:
MacRimi
2025-11-04 21:42:38 +01:00
parent fb588c0d60
commit c2ea307821
2 changed files with 15 additions and 6 deletions

View File

@@ -13,6 +13,13 @@ def auth_status():
"""Get current authentication status"""
try:
status = auth_manager.get_auth_status()
token = request.headers.get('Authorization', '').replace('Bearer ', '')
if token:
username = auth_manager.verify_token(token)
if username:
status['authenticated'] = True
return jsonify(status)
except Exception as e:
return jsonify({"error": str(e)}), 500