Stop the current wardriving session.
()
| 8204 | def auth_change_password(): |
| 8205 | """Change the user's password.""" |
| 8206 | if not session.get('authenticated'): |
| 8207 | return jsonify({'success': False, 'error': 'Not authenticated'}), 401 |
| 8208 | |
| 8209 | data = request.get_json() |
| 8210 | if not data: |
| 8211 | return jsonify({'success': False, 'error': 'No data provided'}), 400 |
| 8212 | |
| 8213 | result = auth_mgr.change_password( |
| 8214 | data.get('current_password', ''), |
| 8215 | data.get('new_password', '') |
| 8216 | ) |
| 8217 | return jsonify(result) if result['success'] else (jsonify(result), 400) |
nothing calls this directly
no test coverage detected