diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-10-10 06:39:11 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-10-10 06:39:11 +0000 |
| commit | 933c77d7f48e048948ea21e41fa1d43434b064d2 (patch) | |
| tree | 75bedf74ad823084dd838d4f2a8b97debccd5ff0 | |
| parent | c9daa3c8fa7687c853e9ad760a310084baffba26 (diff) | |
Log error when login fails due to auto_create_user turned off
git-svn-id: https://svn.roundcube.net/trunk@862 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/include/main.inc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/roundcubemail/program/include/main.inc b/roundcubemail/program/include/main.inc index db0ee6c07..5a47242e3 100644 --- a/roundcubemail/program/include/main.inc +++ b/roundcubemail/program/include/main.inc @@ -636,6 +636,15 @@ function rcmail_login($user, $pass, $host=NULL) { $user_id = rcmail_create_user($user, $host); } + else + { + raise_error(array( + 'code' => 600, + 'type' => 'php', + 'file' => "config/main.inc.php", + 'message' => "Acces denied for new user $user. 'auto_create_user' is disabled" + ), true, false); + } if ($user_id) { |
