summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimotheus Pokorra <tp@tbits.net>2015-04-17 11:24:56 +0200
committerTimotheus Pokorra <tp@tbits.net>2015-04-17 11:27:07 +0200
commit358428eb8ec573e79c610b3f7aa96cb2365f35f5 (patch)
tree6c3600bf1236d2042e00fa2f4875bfae925b1759
parent87d05c91840bac6ebb9d965a95d18d9896dc23a7 (diff)
downloadwebadmin-358428eb8ec573e79c610b3f7aa96cb2365f35f5.tar.gz
rename class Password to password_policy
-rw-r--r--lib/api/kolab_api_service_form_value.php2
-rw-r--r--lib/api/kolab_api_service_user.php4
-rw-r--r--lib/password_policy.php (renamed from lib/Password.php)2
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/api/kolab_api_service_form_value.php b/lib/api/kolab_api_service_form_value.php
index bd16c5f..56074bb 100644
--- a/lib/api/kolab_api_service_form_value.php
+++ b/lib/api/kolab_api_service_form_value.php
@@ -673,7 +673,7 @@ class kolab_api_service_form_value extends kolab_api_service
private function generate_password($postdata, $attribs = array())
{
- return Password::generate_password();
+ return password_policy::generate_password();
}
private function generate_userpassword($postdata, $attribs = array())
diff --git a/lib/api/kolab_api_service_user.php b/lib/api/kolab_api_service_user.php
index b8b14b2..035b8ca 100644
--- a/lib/api/kolab_api_service_user.php
+++ b/lib/api/kolab_api_service_user.php
@@ -83,7 +83,7 @@ class kolab_api_service_user extends kolab_api_service
$attributes = $this->parse_input_attributes('user', $postdata);
- Password::validate_password($attributes['userpassword']);
+ password_policy::validate_password($attributes['userpassword']);
Log::trace("user_add()", $attributes);
@@ -135,7 +135,7 @@ 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']);
+ password_policy::validate_password($user_attributes['userpassword']);
$auth = Auth::get_instance();
$result = $auth->user_edit($postdata['id'], $user_attributes, $postdata['type_id']);
diff --git a/lib/Password.php b/lib/password_policy.php
index 765b3d1..4375623 100644
--- a/lib/Password.php
+++ b/lib/password_policy.php
@@ -22,7 +22,7 @@
+--------------------------------------------------------------------------+
*/
-class Password {
+class password_policy {
private static function get_password_policy()
{