diff options
author | Andrew Dolgov <[email protected]> | 2012-12-27 15:14:44 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-12-27 15:14:44 +0400 |
commit | 0f28f81f8911e432ae4bf50da7ed2c334618fd95 (patch) | |
tree | c5684bedb1ad6b62840c30c730b868934a44b48e /classes/auth/imap.php | |
parent | 61261e45b90f6d0582cd338a1a3c9cf0c8a599ce (diff) |
move authentication modules to plugins/
Diffstat (limited to 'classes/auth/imap.php')
-rw-r--r-- | classes/auth/imap.php | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/classes/auth/imap.php b/classes/auth/imap.php deleted file mode 100644 index 52664eb3e..000000000 --- a/classes/auth/imap.php +++ /dev/null @@ -1,32 +0,0 @@ -<?php -/* Requires php-imap - Put the following options in config.php: - - define('IMAP_AUTH_SERVER', 'your.imap.server:port'); - define('IMAP_AUTH_OPTIONS', '/tls/novalidate-cert/norsh'); - // More about options: http://php.net/manual/ru/function.imap-open.php - - */ - -class Auth_Imap extends Auth_Base { - - 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->auto_create_user($login); - } - } - - return false; - } - -} -?> |