diff options
Diffstat (limited to 'ogcp/views.py')
-rw-r--r-- | ogcp/views.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ogcp/views.py b/ogcp/views.py index b31d8dc..16e39b6 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -1472,6 +1472,11 @@ def action_folder_add_post(): def action_client_add(): form = ClientDetailsForm(request.form) if request.method == 'POST': + + if not form.validate(): + flash(form.errors, category='error') + return redirect(url_for('servers')) + payload = {"boot": form.boot.data, "ip": form.ip.data, "livedir": form.livedir.data, |