24 lines
419 B
Ruby
24 lines
419 B
Ruby
module Admin
|
|
class SessionsController < Devise::SessionsController
|
|
|
|
include Locomotive::Routing::SiteDispatcher
|
|
|
|
layout '/admin/layouts/box'
|
|
|
|
before_filter :require_site
|
|
|
|
helper 'admin/base', 'admin/box'
|
|
|
|
protected
|
|
|
|
def after_sign_in_path_for(resource)
|
|
admin_pages_url
|
|
end
|
|
|
|
def after_sign_out_path_for(resource)
|
|
request.protocol + request.host_with_port
|
|
end
|
|
|
|
end
|
|
end
|