后台登录失败后提示

This commit is contained in:
yafeilee 2014-04-01 19:43:26 +08:00
parent 455e240dd3
commit 1e1aa79820
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ class ApplicationController < ActionController::Base
protected
def authericate_user!
if ! session[:login]
flash[:error] = '请先登录后台管理'
redirect_to new_admin_session_path
end
end