From 7978f872cbd154b169fc9395a3103031f056cf29 Mon Sep 17 00:00:00 2001
From: NETLINK <julianmatz@netlink.ie>
Date: Fri, 09 Nov 2012 00:00:22 -0500
Subject: [PATCH] Update plugins/password/password.php

---
 plugins/password/password.php |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/plugins/password/password.php b/plugins/password/password.php
index 58b6f8c..bf7a95f 100644
--- a/plugins/password/password.php
+++ b/plugins/password/password.php
@@ -55,6 +55,12 @@
         $rcmail = rcmail::get_instance();
 
         $this->load_config();
+        
+        $host = isset( $_SESSION['imap_host'] ) ? $_SESSION['imap_host'] : NULL;
+        $hosts = $rcmail->config->get( 'password_supported_hosts' );
+        if ( !empty( $hosts ) and !in_array( $host, $hosts ) {
+            return;
+        }
 
         // Exceptions list
         if ($exceptions = $rcmail->config->get('password_login_exceptions')) {

--
Gitblit v1.9.1