后台登录失败后提示
This commit is contained in:
parent
455e240dd3
commit
1e1aa79820
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue