Sha256: 96556651f293fa3b2d15adf75d4fc719dbde32ad2d0c828d3303ce9ea0b0ac46
Contents?: true
Size: 1.6 KB
Versions: 30
Compression:
Stored size: 1.6 KB
Contents
module MnoEnterprise::Concerns::Controllers::Auth::SessionsController extend ActiveSupport::Concern #================================================================== # Included methods #================================================================== # 'included do' causes the included code to be evaluated in the # context where it is included rather than being executed in the module's context included do prepend_before_filter :capture_return_to_redirection # before_filter :configure_sign_in_params, only: [:create] end #================================================================== # Class methods #================================================================== module ClassMethods # def some_class_method # 'some text' # end end #================================================================== # Instance methods #================================================================== # GET /resource/sign_in # def new # super # end # POST /resource/sign_in # def create # super # end # def create # self.resource = warden.authenticate!(auth_options) # set_flash_message(:notice, :signed_in) if is_flashing_format? # sign_in(resource_name, resource) # yield resource if block_given? # respond_with resource, location: after_sign_in_path_for(resource) # end # DELETE /resource/sign_out # def destroy # super # end # protected # You can put the params you want to permit in the empty array. # def configure_sign_in_params # devise_parameter_sanitizer.for(:sign_in) << :attribute # end end
Version data entries
30 entries across 30 versions & 1 rubygems