summaryrefslogtreecommitdiffstats
path: root/lib/api/kolab_api_service_user.php
diff options
context:
space:
mode:
authorTimotheus Pokorra <tp@tbits.net>2015-04-17 10:17:49 +0200
committerTimotheus Pokorra <tp@tbits.net>2015-04-17 10:20:55 +0200
commit87d05c91840bac6ebb9d965a95d18d9896dc23a7 (patch)
treea316f755d4a41adb436b75819c35f2b41cb2f53e /lib/api/kolab_api_service_user.php
parent981a19e863bac41ef0c9e2deabe2e6ddfc23cc77 (diff)
downloadwebadmin-87d05c91840bac6ebb9d965a95d18d9896dc23a7.tar.gz
implement Password complexity policy for WAP (#4988)
Diffstat (limited to 'lib/api/kolab_api_service_user.php')
-rw-r--r--lib/api/kolab_api_service_user.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/kolab_api_service_user.php b/lib/api/kolab_api_service_user.php
index 5d29d52..b8b14b2 100644
--- a/lib/api/kolab_api_service_user.php
+++ b/lib/api/kolab_api_service_user.php
@@ -83,6 +83,8 @@ class kolab_api_service_user extends kolab_api_service
$attributes = $this->parse_input_attributes('user', $postdata);
+ Password::validate_password($attributes['userpassword']);
+
Log::trace("user_add()", $attributes);
$auth = Auth::get_instance();
@@ -133,6 +135,8 @@ class kolab_api_service_user extends kolab_api_service
Log::trace("\$user_attributes as result from parse_input_attributes", $user_attributes);
+ Password::validate_password($user_attributes['userpassword']);
+
$auth = Auth::get_instance();
$result = $auth->user_edit($postdata['id'], $user_attributes, $postdata['type_id']);