main: Fixed customer side
All checks were successful
Build Docker / Build Bot (push) Successful in 26s
Build Docker / Build Master (push) Successful in 28s

This commit is contained in:
Nathan Woodburn 2023-08-25 18:01:49 +10:00
parent 3628e0a4ac
commit 73d11a0f76
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -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'})