2010-05-10 22:39:52 +00:00
|
|
|
module Admin
|
|
|
|
class SessionsController < Devise::SessionsController
|
2010-04-22 23:52:11 +00:00
|
|
|
|
2010-05-10 22:39:52 +00:00
|
|
|
include Locomotive::Routing::SiteDispatcher
|
2010-04-22 23:52:11 +00:00
|
|
|
|
2010-05-10 22:39:52 +00:00
|
|
|
layout 'login'
|
2010-04-22 23:52:11 +00:00
|
|
|
|
2010-05-10 22:39:52 +00:00
|
|
|
before_filter :require_site
|
2010-04-22 23:52:11 +00:00
|
|
|
|
2010-05-10 22:39:52 +00:00
|
|
|
protected
|
2010-05-09 12:44:53 +00:00
|
|
|
|
2010-05-10 22:39:52 +00:00
|
|
|
def after_sign_in_path_for(resource)
|
|
|
|
admin_pages_url
|
|
|
|
end
|
2010-05-09 12:44:53 +00:00
|
|
|
|
2010-05-10 22:39:52 +00:00
|
|
|
end
|
2010-04-22 23:52:11 +00:00
|
|
|
end
|