kolab_2fa: Fix bugs in the last commit
This commit is contained in:
parent
fb9b3a7cff
commit
a3d7737d83
1 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ class kolab_2fa extends rcube_plugin
|
||||||
$username = !empty($_SESSION['kolab_auth_admin']) ? $_SESSION['kolab_auth_admin'] : $args['user'];
|
$username = !empty($_SESSION['kolab_auth_admin']) ? $_SESSION['kolab_auth_admin'] : $args['user'];
|
||||||
|
|
||||||
// Check if we need to add/force domain to username
|
// Check if we need to add/force domain to username
|
||||||
$username_domain = $this->config->get('username_domain');
|
$username_domain = $rcmail->config->get('username_domain');
|
||||||
if (!empty($username_domain)) {
|
if (!empty($username_domain)) {
|
||||||
$domain = '';
|
$domain = '';
|
||||||
if (is_array($username_domain)) {
|
if (is_array($username_domain)) {
|
||||||
|
@ -118,7 +118,7 @@ class kolab_2fa extends rcube_plugin
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert username to lowercase. Copied from rcmail::login()
|
// Convert username to lowercase. Copied from rcmail::login()
|
||||||
$login_lc = $this->config->get('login_lc', 2);
|
$login_lc = $rcmail->config->get('login_lc', 2);
|
||||||
if ($login_lc) {
|
if ($login_lc) {
|
||||||
if ($login_lc == 2 || $login_lc === true) {
|
if ($login_lc == 2 || $login_lc === true) {
|
||||||
$username = mb_strtolower($username);
|
$username = mb_strtolower($username);
|
||||||
|
|
Loading…
Add table
Reference in a new issue