diff --git a/www/user/main.js b/www/user/main.js index 9299a9efd..0b45b68f8 100644 --- a/www/user/main.js +++ b/www/user/main.js @@ -293,7 +293,7 @@ define([ $username.focus(); $login.click(function () { - var uname = $username.val(); + var uname = $username.val().trim(); var passwd = $password.val(); var confirm = $confirm.val(); var remember = $remember[0].checked;