clear passpord when login unsuccess
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -285,7 +285,7 @@ $('#login-btn').on('click', function() { | @@ -285,7 +285,7 @@ $('#login-btn').on('click', function() { | ||
285 | } | 285 | } |
286 | } else { | 286 | } else { |
287 | $passwordTip.removeClass('hide').children('em').html(data.message); | 287 | $passwordTip.removeClass('hide').children('em').html(data.message); |
288 | - $password.addClass('error'); | 288 | + $password.addClass('error').val(''); |
289 | } | 289 | } |
290 | }, | 290 | }, |
291 | complete: function() { | 291 | complete: function() { |
-
Please register or login to post a comment