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

Version Path
devise-1.1.9 app/controllers/devise/sessions_controller.rb
devise-1.1.8 app/controllers/devise/sessions_controller.rb
devise-1.1.7 app/controllers/devise/sessions_controller.rb
devise-1.1.6 app/controllers/devise/sessions_controller.rb
devise-1.1.5 app/controllers/devise/sessions_controller.rb
devise-1.1.4 app/controllers/devise/sessions_controller.rb
devise-1.1.3 app/controllers/devise/sessions_controller.rb
devise-1.1.2 app/controllers/devise/sessions_controller.rb
devise-1.1.1 app/controllers/devise/sessions_controller.rb
devise-1.1.0 app/controllers/devise/sessions_controller.rb
namxam-devise-1.1.0.win app/controllers/devise/sessions_controller.rb
devise-1.1.rc2 app/controllers/devise/sessions_controller.rb
devise-1.1.rc1 app/controllers/devise/sessions_controller.rb
devise-1.1.rc0 app/controllers/devise/sessions_controller.rb