main: Fixed customer side
This commit is contained in:
parent
3628e0a4ac
commit
73d11a0f76
@ -601,9 +601,9 @@ def addsite():
|
|||||||
key_file.close()
|
key_file.close()
|
||||||
|
|
||||||
# Get domain
|
# Get domain
|
||||||
domain = request.args.get('domain')
|
domain = request.form['domain']
|
||||||
if domain == None:
|
if domain == None:
|
||||||
return redirect('/admin')
|
return jsonify({'error': 'No domain sent', 'success': 'false'})
|
||||||
# Check if domain already exists
|
# Check if domain already exists
|
||||||
if site_exists(domain):
|
if site_exists(domain):
|
||||||
return jsonify({'error': 'Domain already exists', 'success': 'false'})
|
return jsonify({'error': 'Domain already exists', 'success': 'false'})
|
||||||
|
Loading…
Reference in New Issue
Block a user