diff options
author | thomascube <thomas@roundcube.net> | 2007-10-10 06:39:11 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2007-10-10 06:39:11 +0000 |
commit | 352aefed85962adf6c6079b4a9ed7abf3ad8cd50 (patch) | |
tree | 235f4426d7cec2d5b5acc6aa466f20f1dca888e0 | |
parent | 112bff6f1129de9966155f841bb0a6e855110886 (diff) |
Log error when login fails due to auto_create_user turned off
-rw-r--r-- | program/include/main.inc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/program/include/main.inc b/program/include/main.inc index db0ee6c07..5a47242e3 100644 --- a/program/include/main.inc +++ b/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) { |