summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorMarvin Thomas Rabe <m.rabe@echtzeitraum.de>2011-10-08 13:10:49 +0200
committerMarvin Thomas Rabe <m.rabe@echtzeitraum.de>2011-10-08 13:10:49 +0200
commit590ff0ced98a27e7b1664896d5205358b1ee3612 (patch)
tree87f48e4f9efebc9ef21c6b23101cb8831bfac2f9 /settings
parent71caa4a20c6b15300e4367c1b92c8ae650399fc7 (diff)
downloadnextcloud-server-590ff0ced98a27e7b1664896d5205358b1ee3612.tar.gz
nextcloud-server-590ff0ced98a27e7b1664896d5205358b1ee3612.zip
moved bookmarklet to personal. username must be provided when adding a new user.
Diffstat (limited to 'settings')
-rw-r--r--settings/js/users.js4
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(