diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index 02736346c..913612f80 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -25,6 +25,7 @@ class AccountController < ApplicationController # Login request and validation def login if request.get? + @login = params[:login] if User.current.logged? redirect_to home_url else diff --git a/app/views/account/login.html.erb b/app/views/account/login.html.erb index 4b822a616..deec186c8 100644 --- a/app/views/account/login.html.erb +++ b/app/views/account/login.html.erb @@ -1,18 +1,18 @@ -<%= stylesheet_link_tag 'new_public'%> +<%= stylesheet_link_tag 'new_user'%> <%= stylesheet_link_tag 'leftside'%> \ No newline at end of file + diff --git a/app/views/layouts/_unlogin_header.html.erb b/app/views/layouts/_unlogin_header.html.erb index 9d9ed813f..4151493fc 100644 --- a/app/views/layouts/_unlogin_header.html.erb +++ b/app/views/layouts/_unlogin_header.html.erb @@ -34,10 +34,10 @@
- 登录 + 登录
- 注册 + 注册
@@ -48,4 +48,4 @@ }).mouseout(function(){ $("#navHomepageSearchType").hide(); }); - \ No newline at end of file +