|
|
@ -3,7 +3,7 @@
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
+-------------------------------------------------------------------------+
|
|
|
|
+-------------------------------------------------------------------------+
|
|
|
|
| Password Plugin for Roundcube |
|
|
|
|
| Password Plugin for Roundcube |
|
|
|
|
| @version @package_version@ |
|
|
|
|
| @version @package_version@ |
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| Copyright (C) 2009-2010, Roundcube Dev. |
|
|
|
|
| Copyright (C) 2009-2010, Roundcube Dev. |
|
|
|
|
| |
|
|
|
|
| |
|
|
|
@ -56,6 +56,12 @@ class password extends rcube_plugin
|
|
|
|
|
|
|
|
|
|
|
|
$this->load_config();
|
|
|
|
$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
|
|
|
|
// Exceptions list
|
|
|
|
if ($exceptions = $rcmail->config->get('password_login_exceptions')) {
|
|
|
|
if ($exceptions = $rcmail->config->get('password_login_exceptions')) {
|
|
|
|
$exceptions = array_map('trim', (array) $exceptions);
|
|
|
|
$exceptions = array_map('trim', (array) $exceptions);
|
|
|
|