Skip to content

Commit a195ee8

Browse files
Update settings.py
1 parent 47ee612 commit a195ee8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

app/settings.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,20 @@ def update_da_config():
6666
print(traceback.format_exc()) # Full traceback
6767
db.session.rollback()
6868
return jsonify({'error': f'Failed to save settings: {str(e)}'}), 500
69+
70+
@settings_bp.route('/api/debug')
71+
@login_required
72+
def debug_info():
73+
"""Debug endpoint to check user state"""
74+
return jsonify({
75+
'user': current_user.username,
76+
'has_encryption_key': bool(current_user.encryption_key),
77+
'has_da_config': current_user.has_da_config(),
78+
'da_server_configured': bool(current_user.da_server),
79+
'da_username_configured': bool(current_user.da_username),
80+
'da_password_configured': bool(current_user.da_password_encrypted),
81+
'da_domain_configured': bool(current_user.da_domain)
82+
})
6983

7084
@settings_bp.route('/api/test-connection', methods=['POST'])
7185
@login_required

0 commit comments

Comments
 (0)