summaryrefslogtreecommitdiff
path: root/plugins/password/password.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-11-16 19:49:02 +0100
committerAleksander Machniak <alec@alec.pl>2012-11-16 19:49:02 +0100
commit98128f13fcdc8dca6ebefcdc93dc94b00322abb5 (patch)
tree58dd49ce23f2a4dde93bec3baf53ea0e078d44be /plugins/password/password.php
parent657864a29c96b15069a304693cc557b1d9b27b1c (diff)
Rename option password_supported_hosts to password_hosts, code cleanup
Diffstat (limited to 'plugins/password/password.php')
-rw-r--r--plugins/password/password.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/password/password.php b/plugins/password/password.php
index cd0f5f1e0..028a58d3e 100644
--- a/plugins/password/password.php
+++ b/plugins/password/password.php
@@ -55,14 +55,14 @@ 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 ) ) {
+
+ // Host exceptions
+ $hosts = $rcmail->config->get('password_hosts');
+ if (!empty($hosts) && !in_array($_SESSION['storage_host'], $hosts)) {
return;
}
- // Exceptions list
+ // Login exceptions
if ($exceptions = $rcmail->config->get('password_login_exceptions')) {
$exceptions = array_map('trim', (array) $exceptions);
$exceptions = array_filter($exceptions);