diff options
author | root <root@cacert1-mgr.it-sls.de> | 2010-08-18 15:13:32 +0200 |
---|---|---|
committer | root <root@cacert1-mgr.it-sls.de> | 2010-08-18 15:13:32 +0200 |
commit | 423dbd13ee345ef3fb5da5778b5d75718ec13b6d (patch) | |
tree | a073654428bd319b5b4f06ae1fda1ec6357c71b0 /manager/library/CAcert/User/Emails.php | |
parent | ea4c410936239901a99e241bb0cad6ba3bf70628 (diff) | |
download | cacert-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/CAcert/User/Emails.php')
-rw-r--r-- | manager/library/CAcert/User/Emails.php | 11 |
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 +}
|