diff --git a/routes/admin_api.py b/routes/admin_api.py index 6f0dd12..ddf7d9d 100644 --- a/routes/admin_api.py +++ b/routes/admin_api.py @@ -554,8 +554,8 @@ def generate_password_reset_token(current_user, user_id): data = request.get_json() or {} instance_url = data.get('instance_url', request.host_url.rstrip('/')) - # Return the token and reset URL - reset_url = f"{instance_url}/reset-password/{token}" + # Return the token and reset URL - FIX: Include /auth prefix + reset_url = f"{instance_url}/auth/reset-password/{token}" return jsonify({ 'message': 'Password reset token generated successfully',