Sha256: e0bfe3b1b096fefc6732a9648b2c71da50baeb460ec910c87d0a59f509a821e5

Contents?: true

Size: 581 Bytes

Versions: 9

Compression:

Stored size: 581 Bytes

Contents

class Admin::Kitsune::SessionsController < Admin::Kitsune::KitsuneController
  skip_before_filter :authenticate, :load_models
  layout 'admin/kitsune'
  def new
    
  end
  
  def create
    @user = KitsuneUser.authenticate(params[:session][:email], params[:session][:password])
    if @user.nil?
      flash[:notice] = "Could not log you in"
      render 'new'
    else
      sign_in(@user)
      redirect_back_or(url_for(:controller => 'admin/kitsune/models'))
    end
  end
  
  def destroy
    sign_out
    redirect_to(url_for(:controller => 'admin/kitsune/models'))
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
ds-kitsune-0.2.5 app/controllers/admin/kitsune/sessions_controller.rb
ds-kitsune-0.2.3 app/controllers/admin/kitsune/sessions_controller.rb
kitsune-0.2.1 app/controllers/admin/kitsune/sessions_controller.rb
kitsune-0.2.0 app/controllers/admin/kitsune/sessions_controller.rb
kitsune-0.1.5 app/controllers/admin/kitsune/sessions_controller.rb
kitsune-0.1.4 app/controllers/admin/kitsune/sessions_controller.rb
kitsune-0.1.3 app/controllers/admin/kitsune/sessions_controller.rb
kitsune-0.1.2 app/controllers/admin/kitsune/sessions_controller.rb
kitsune-0.1.1 app/controllers/admin/kitsune/sessions_controller.rb