diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | 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 58b6f8cd9..bf7a95f69 100644 --- a/plugins/password/password.php +++ b/plugins/password/password.php @@ -55,6 +55,12 @@ class password extends rcube_plugin $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')) { |