Fix whitespace username

remotes/origin/stable
Georg Ehrke 13 years ago
parent 4374d55e5e
commit 534b6f3a09
  1. 2
      lib/user.php
  2. 2
      settings/js/users.js

@ -120,7 +120,7 @@ class OC_User {
return false;
}
// No empty username
if( !$uid ){
if(trim($uid) == ''){
return false;
}
// Check if user already exists

@ -126,7 +126,7 @@ $(document).ready(function(){
$('#newuser').submit(function(event){
event.preventDefault();
var username=$('#newusername').val();
if(username == '') {
if($.trim(username) == '') {
alert('Please provide a username!');
return false;
}

Loading…
Cancel
Save