Sha256: 0650cc295e024d037489707dc3fc6c93c352f3a9f822f0fbab38f4a21feb0c60

Contents?: true

Size: 379 Bytes

Versions: 22

Compression:

Stored size: 379 Bytes

Contents

class SessionsController < ApplicationController
  before_action :authenticate!, except: [:failed, :new]

  def create
    redirect_to '/'
  end

  def destroy
    warden.logout
    redirect_to :back
  end

  def failed
    respond_to do |format|
      format.html do
        render 'new'
      end
      format.js do
        render 'show' and return
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
ecrire-0.31.2 lib/ecrire/app/controllers/sessions_controller.rb
ecrire-0.31.1 lib/ecrire/app/controllers/sessions_controller.rb
ecrire-0.31.0 lib/ecrire/app/controllers/sessions_controller.rb
ecrire-0.30.3 lib/ecrire/app/controllers/sessions_controller.rb
ecrire-0.30.2 lib/ecrire/app/controllers/sessions_controller.rb
ecrire-0.30.1 lib/ecrire/app/controllers/sessions_controller.rb
ecrire-0.30.0 lib/ecrire/app/controllers/sessions_controller.rb
ecrire-0.29.0 lib/ecrire/app/controllers/sessions_controller.rb
ecrire-0.28.3 lib/ecrire/app/controllers/sessions_controller.rb
ecrire-0.28.2 lib/ecrire/app/controllers/sessions_controller.rb
ecrire-0.28.1 lib/ecrire/app/controllers/sessions_controller.rb
ecrire-0.28.0 lib/ecrire/app/controllers/sessions_controller.rb
ecrire-0.27.0 lib/ecrire/app/controllers/sessions_controller.rb
ecrire-0.26.3 lib/ecrire/app/controllers/sessions_controller.rb
ecrire-0.26.2 lib/ecrire/app/controllers/sessions_controller.rb
ecrire-0.26.1 lib/ecrire/app/controllers/sessions_controller.rb
ecrire-0.26.0 lib/ecrire/app/controllers/sessions_controller.rb
ecrire-0.25.2 lib/ecrire/app/controllers/sessions_controller.rb
ecrire-0.25.1 lib/ecrire/app/controllers/sessions_controller.rb
ecrire-0.25.0 lib/ecrire/app/controllers/sessions_controller.rb