From 73d11a0f765cf9f939e7c797f1cb6a38812e6c54 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 25 Aug 2023 18:01:49 +1000 Subject: [PATCH] main: Fixed customer side --- master/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/master/main.py b/master/main.py index e1cbc4e..0dbc366 100644 --- a/master/main.py +++ b/master/main.py @@ -601,9 +601,9 @@ def addsite(): key_file.close() # Get domain - domain = request.args.get('domain') + domain = request.form['domain'] if domain == None: - return redirect('/admin') + return jsonify({'error': 'No domain sent', 'success': 'false'}) # Check if domain already exists if site_exists(domain): return jsonify({'error': 'Domain already exists', 'success': 'false'})