diff options
Diffstat (limited to 'settings/js/users.js')
-rw-r--r-- | settings/js/users.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/settings/js/users.js b/settings/js/users.js index 4944f3a62f6..64a132b427e 100644 --- a/settings/js/users.js +++ b/settings/js/users.js @@ -123,6 +123,10 @@ $(document).ready(function(){ $('#newuser').submit(function(event){ event.preventDefault(); var username=$('#newusername').val(); + if(username == '') { + alert('Please provide a username!'); + return false; + } var password=$('#newuserpassword').val(); var groups=$('#newusergroups').prev().children('div').data('settings').checked; $.post( |