Sha256: 7ec49f68d3e2070b5d5caa84b84c6c3f6524e6e3e0516a88b4f06c737362697d

Contents?: true

Size: 553 Bytes

Versions: 11

Compression:

Stored size: 553 Bytes

Contents

# -*- coding: utf-8 -*-

# 認証
class AuthController < ApplicationController
  verify_method_post :only => [:logout]

  # GET /auth/index
  def index
    # nop
  end

  # GET /auth/logged_in
  def logged_in
    @return_path = params[:return_path]
    @return_path = root_path if @return_path.blank?
  end

  # POST /auth/logout
  def logout
    reset_session
    redirect_to(:action => "logged_out")
  end

  # GET /auth/logged_out
  def logged_out
    @return_path = params[:return_path]
    @return_path = root_path if @return_path.blank?
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
multi_auth-0.2.0 app/controllers/auth_controller.rb
okkez-multi_auth-0.1.0 app/controllers/auth_controller.rb
multi_auth-0.1.0 app/controllers/auth_controller.rb
okkez-multi_auth-0.0.7 app/controllers/auth_controller.rb
multi_auth-0.0.7 app/controllers/auth_controller.rb
okkez-multi_auth-0.0.6 app/controllers/auth_controller.rb
multi_auth-0.0.6 app/controllers/auth_controller.rb
okkez-multi_auth-0.0.5 app/controllers/auth_controller.rb
multi_auth-0.0.5 app/controllers/auth_controller.rb
okkez-multi_auth-0.0.4 app/controllers/auth_controller.rb
multi_auth-0.0.4 app/controllers/auth_controller.rb