diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-02-08 17:16:18 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-02-08 17:16:18 +0100 |
commit | 05b46f78281e5df49a5c6a0513a37eaf03c3c29d (patch) | |
tree | 66be0588d54982d30c1909f7bc8cd8fe8918eb7f /settings/ajax/createuser.php | |
parent | 96042f1e5b343ed75f59fc2997b7e54c07b557da (diff) | |
download | nextcloud-server-05b46f78281e5df49a5c6a0513a37eaf03c3c29d.tar.gz nextcloud-server-05b46f78281e5df49a5c6a0513a37eaf03c3c29d.zip |
on creation only test for existing users if the backend supports user creation
this solves the issue where no users can be created any more if backends are active which always return true on userExists() like WebDAV Auth
Diffstat (limited to 'settings/ajax/createuser.php')
-rw-r--r-- | settings/ajax/createuser.php | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/settings/ajax/createuser.php b/settings/ajax/createuser.php index 09ef25d92fa..56653bed6bd 100644 --- a/settings/ajax/createuser.php +++ b/settings/ajax/createuser.php @@ -26,12 +26,6 @@ if(OC_User::isAdminUser(OC_User::getUser())) { $username = $_POST["username"]; $password = $_POST["password"]; -// Does the group exist? -if(OC_User::userExists($username)) { - OC_JSON::error(array("data" => array( "message" => "User already exists" ))); - exit(); -} - // Return Success story try { if (!OC_User::createUser($username, $password)) { |