File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments