mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-02-12 21:11:53 +00:00
convert all names to lowercase
This commit is contained in:
parent
635e4c0f9f
commit
2317fddeac
2 changed files with 2 additions and 2 deletions
|
@ -392,7 +392,7 @@ def create():
|
|||
pools=pools,
|
||||
templates=templates)
|
||||
elif request.method == 'POST':
|
||||
name = request.form['name']
|
||||
name = request.form['name'].lower()
|
||||
cores = request.form['cores']
|
||||
memory = request.form['mem']
|
||||
template = request.form['template']
|
||||
|
|
|
@ -386,7 +386,7 @@ $("#renew-vm").click(function(){
|
|||
});
|
||||
|
||||
$("#create-vm").click(function(){
|
||||
const name = document.getElementById('name').value;
|
||||
const name = document.getElementById('name').value.toLowerCase();
|
||||
const cores = document.getElementById('cores').value;
|
||||
const mem = document.getElementById('mem').value;
|
||||
const template = document.getElementById('template').value;
|
||||
|
|
Loading…
Reference in a new issue