MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _set_toml_value

Function _set_toml_value

webapp_modern.py:10650–10659  ·  view source on GitHub ↗

Set a nested value in a tomlkit document using dotted key notation.

(doc, dotted_key, value)

Source from the content-addressed store, hash-verified

10648 return jsonify({'success': False, 'error': 'Authentication is already configured'}), 400
10649
10650 data = request.get_json()
10651 if not data:
10652 return jsonify({'success': False, 'error': 'No data provided'}), 400
10653
10654 username = data.get('username', '').strip()
10655 password = data.get('password', '')
10656 confirm = data.get('confirm_password', '')
10657
10658 if password != confirm:
10659 return jsonify({'success': False, 'error': 'Passwords do not match'}), 400
10660
10661 result = auth_mgr.setup(username, password)
10662 if result['success']:

Callers 1

save_pwnagotchi_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected