|
@@ -16,8 +16,8 @@ $.validator.setDefaults({
|
|
|
|
|
|
function login() {
|
|
|
$.modal.loading($("#btnSubmit").data("loading"));
|
|
|
- var username = $("input[name='username']").val().trim();
|
|
|
- var password = $("input[name='password']").val().trim();
|
|
|
+ var username = $.common.trim($("input[name='username']").val());
|
|
|
+ var password = $.common.trim($("input[name='password']").val());
|
|
|
var validateCode = $("input[name='validateCode']").val();
|
|
|
var rememberMe = $("input[name='rememberme']").is(':checked');
|
|
|
$.ajax({
|