diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-01-23 17:34:23 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-01-23 17:34:23 +0100 |
commit | c2183427c3ea52a8f0660425b1a063c0a6bfd141 (patch) | |
tree | 185083ca4699db9c671aba0821153d87e7d115d7 /settings/js | |
parent | 76ce8c6c6a993a8dd2dbc70417900983484dc211 (diff) | |
download | nextcloud-server-c2183427c3ea52a8f0660425b1a063c0a6bfd141.tar.gz nextcloud-server-c2183427c3ea52a8f0660425b1a063c0a6bfd141.zip |
dont try to create a user with an already existing username
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/users.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/settings/js/users.js b/settings/js/users.js index 46ab12b857a..c9b1d855db0 100644 --- a/settings/js/users.js +++ b/settings/js/users.js @@ -127,6 +127,9 @@ $(document).ready(function(){ $('#newuser').submit(function(event){ event.preventDefault(); var username=$('#newusername').val(); + if($('#content table tbody tr').filterAttr('data-uid',username).length>0){ + return; + } if($.trim(username) == '') { alert('Please provide a username!'); return false; |