Skip to content
Snippets Groups Projects
Commit c2183427 authored by Robin Appelman's avatar Robin Appelman
Browse files

dont try to create a user with an already existing username

parent 76ce8c6c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment