Sha256: 59df52106659c65cbcfe9655fc2411041d6c23ff98c440bf8c7197ce821f5933
Contents?: true
Size: 623 Bytes
Versions: 18
Compression:
Stored size: 623 Bytes
Contents
module G5Authenticatable class SessionsController < DeviseG5Authenticatable::SessionsController protected def register_resource create_resource sign_in_resource end def signed_in_root_path(resource_or_scope) main_app.root_path end def create_resource self.resource = G5Authenticatable::User.new_with_session({}, session) resource.update_g5_credentials(auth_data) resource.save! end def after_omniauth_failure_path_for(scope) auth_error_path end def after_sign_out_path_for(resource_or_scope) main_app.root_path end end end
Version data entries
18 entries across 18 versions & 1 rubygems