summaryrefslogtreecommitdiffstats
path: root/hosted
diff options
context:
space:
mode:
authorTorsten Grote <grote@kolabsys.com>2012-07-10 15:27:29 +0200
committerTorsten Grote <grote@kolabsys.com>2012-07-10 15:27:29 +0200
commit6fd9f482ab37ed3cc16facf257047cbfdeaaaac4 (patch)
tree73e4248f2691524d8b1984c7980f7c572e1450b3 /hosted
parent16026f336093839a8dc3fdd9559e1700ef295613 (diff)
downloadwebadmin-6fd9f482ab37ed3cc16facf257047cbfdeaaaac4.tar.gz
added reCaptcha service to signup form
Diffstat (limited to 'hosted')
-rw-r--r--hosted/js/kolab_hosted.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/hosted/js/kolab_hosted.js b/hosted/js/kolab_hosted.js
index 7bbc35c..1252cbf 100644
--- a/hosted/js/kolab_hosted.js
+++ b/hosted/js/kolab_hosted.js
@@ -34,6 +34,11 @@ kadm.user_save = function(reload, section)
return;
}
+ if (!kadm.check_required_fields(data)) {
+ kadm.display_message('form.required.empty', 'error');
+ return;
+ }
+
// check password
if (data.userpassword != data.userpassword2) {
kadm.display_message('user.password.mismatch', 'error');
@@ -42,11 +47,6 @@ kadm.user_save = function(reload, section)
}
delete data['userpassword2'];
- if (!kadm.check_required_fields(data)) {
- kadm.display_message('form.required.empty', 'error');
- return;
- }
-
kadm.http_post('signup.add_user', {data: data});
};