Sha256: cd427e4b0323a25bf19a20b61193ff403c47fd7b3b4d964056e66a8635c38c54
Contents?: true
Size: 675 Bytes
Versions: 14
Compression:
Stored size: 675 Bytes
Contents
class Devise::SessionsController < ApplicationController prepend_before_filter :require_no_authentication, :only => [ :new, :create ] include Devise::Controllers::InternalHelpers # GET /resource/sign_in def new clean_up_passwords(build_resource) render_with_scope :new end # POST /resource/sign_in def create resource = warden.authenticate!(:scope => resource_name, :recall => "new") set_flash_message :notice, :signed_in sign_in_and_redirect(resource_name, resource) end # GET /resource/sign_out def destroy set_flash_message :notice, :signed_out if signed_in?(resource_name) sign_out_and_redirect(resource_name) end end
Version data entries
14 entries across 14 versions & 2 rubygems