diff --git a/app/views/account/login.html.erb b/app/views/account/login.html.erb
index 8d11a0697..23acabd1f 100644
--- a/app/views/account/login.html.erb
+++ b/app/views/account/login.html.erb
@@ -139,8 +139,9 @@
<%= password_field_tag 'password', nil, :tabindex => '2', :class => 'new_loggin_input' , :placeholder => '请输入登录密码', :onkeypress => "user_name_keypress(event);"%>
+ <%= flash.empty? || flash[:error].nil? ? "" : flash[:error].html_safe %>
- <%= flash.empty? || flash[:error].nil? ? "" : flash[:error].html_safe %>
+
<% if Setting.autologin? %>
diff --git a/public/stylesheets/new_user.css b/public/stylesheets/new_user.css
index 836596244..c2e850dbe 100644
--- a/public/stylesheets/new_user.css
+++ b/public/stylesheets/new_user.css
@@ -1672,6 +1672,7 @@ input.new_register_input{
width:250px;
height:45px;
border:none;
+ outline: none;
}
input.new_loggin_input{
-webkit-box-shadow: 0 0 0px 1000px white inset;