diff options
Diffstat (limited to 'program/include')
-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) { |