mirror of https://git.48k.eu/ogcp
views: fix invalid url redirection in client/server add
Remove 2 instances of redirect(url_for('servers')), this path does not exist anymore and causes the web to show a backtrace.master
parent
b3c25a827b
commit
e82796c902
|
@ -1486,7 +1486,7 @@ def action_client_add():
|
|||
|
||||
if not form.validate():
|
||||
flash(form.errors, category='error')
|
||||
return redirect(url_for('servers'))
|
||||
return redirect(url_for('scopes'))
|
||||
|
||||
try:
|
||||
ipaddress.ip_address(form.ip.data)
|
||||
|
@ -2554,7 +2554,7 @@ def server_add_post():
|
|||
form = ServerForm(request.form)
|
||||
if not form.validate():
|
||||
flash(form.errors, category='error')
|
||||
return redirect(url_for('servers'))
|
||||
return redirect(url_for('manage_servers'))
|
||||
ip_port_str = form.ip.data + ":" + form.port.data
|
||||
try:
|
||||
get_server_from_ip_port(ip_port_str)
|
||||
|
|
Loading…
Reference in New Issue