From db77016fc8245d01a5dbe63ccc308258c794e7f2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 7 Apr 2013 19:27:34 +0400 Subject: move service-dependent auth plugins to contrib repo --- plugins/auth_imap/init.php | 51 ---------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 plugins/auth_imap/init.php (limited to 'plugins/auth_imap') diff --git a/plugins/auth_imap/init.php b/plugins/auth_imap/init.php deleted file mode 100644 index cca279cb3..000000000 --- a/plugins/auth_imap/init.php +++ /dev/null @@ -1,51 +0,0 @@ -link = $host->get_link(); - $this->host = $host; - $this->base = new Auth_Base($this->link); - - $host->add_hook($host::HOOK_AUTH_USER, $this); - } - - function authenticate($login, $password) { - - if ($login && $password) { - $imap = imap_open( - "{".IMAP_AUTH_SERVER.IMAP_AUTH_OPTIONS."}INBOX", - $login, - $password); - - if ($imap) { - imap_close($imap); - - return $this->base->auto_create_user($login); - } - } - - return false; - } - -} - -?> -- cgit v1.2.3