2011-10-30 23:02:41 +00:00
|
|
|
module Locomotive
|
2011-11-06 11:18:34 +00:00
|
|
|
class SessionsController < ::Devise::SessionsController
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2010-05-10 22:39:52 +00:00
|
|
|
include Locomotive::Routing::SiteDispatcher
|
2010-04-22 23:52:11 +00:00
|
|
|
|
2011-11-04 15:55:51 +00:00
|
|
|
layout '/locomotive/layouts/not_logged_in'
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2010-05-10 22:39:52 +00:00
|
|
|
before_filter :require_site
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2011-11-04 15:55:51 +00:00
|
|
|
helper 'locomotive/base'
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2010-05-10 22:39:52 +00:00
|
|
|
protected
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2010-05-10 22:39:52 +00:00
|
|
|
def after_sign_in_path_for(resource)
|
2011-10-31 23:44:23 +00:00
|
|
|
pages_url
|
2010-05-10 22:39:52 +00:00
|
|
|
end
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2011-04-24 23:21:38 +00:00
|
|
|
def after_sign_out_path_for(resource)
|
|
|
|
request.protocol + request.host_with_port
|
|
|
|
end
|
|
|
|
|
2010-05-10 22:39:52 +00:00
|
|
|
end
|
2010-07-23 20:09:54 +00:00
|
|
|
end
|