summaryrefslogtreecommitdiff
path: root/manager/library
diff options
context:
space:
mode:
authorroot <root@cacert1-mgr.it-sls.de>2010-08-18 15:13:32 +0200
committerroot <root@cacert1-mgr.it-sls.de>2010-08-18 15:13:32 +0200
commit423dbd13ee345ef3fb5da5778b5d75718ec13b6d (patch)
treea073654428bd319b5b4f06ae1fda1ec6357c71b0 /manager/library
parentea4c410936239901a99e241bb0cad6ba3bf70628 (diff)
downloadcacert-mgr-423dbd13ee345ef3fb5da5778b5d75718ec13b6d.tar.gz
cacert-mgr-423dbd13ee345ef3fb5da5778b5d75718ec13b6d.tar.xz
cacert-mgr-423dbd13ee345ef3fb5da5778b5d75718ec13b6d.zip
even more fixes, seems to work now => validate more email addresses per account
Diffstat (limited to 'manager/library')
-rw-r--r--manager/library/CAcert/User/Emails.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/manager/library/CAcert/User/Emails.php b/manager/library/CAcert/User/Emails.php
index d345ce8..44b1310 100644
--- a/manager/library/CAcert/User/Emails.php
+++ b/manager/library/CAcert/User/Emails.php
@@ -1,8 +1,10 @@
<?php
class CAcert_User_Emails {
- public function __construct() {
- Log::Log()->debug(__METHOD__);
+ private $db = null;
+
+ public function __construct($db) {
+ $this->db = $db;
}
/**
@@ -11,7 +13,7 @@ class CAcert_User_Emails {
* @return array
*/
public function getEmailAddressesByLogin($addr) {
- $db = Zend_Registry::get('auth2_dbc');
+ $db = $this->db;
/**
* find out user id by email address
@@ -51,7 +53,6 @@ class CAcert_User_Emails {
}
}
- Log::Log()->debug(__METHOD__ . ' mail addresses ' . var_export($emails, true));
return $emails;
}
-} \ No newline at end of file
+}