Sha256: e6e0e7cb03991c7dfac23288312aba09618bd96e1a531574c2b7d42163780526

Contents?: true

Size: 320 Bytes

Versions: 5

Compression:

Stored size: 320 Bytes

Contents

class SessionsController < ApplicationController

  def create
    user = User.from_omniauth(request.env['omniauth.auth'])
    session[:user_id] = user.id
    redirect_to Config.ui_root_url
  end

  def destroy
    session[:user_id] = nil
  end

  def failure
    redirect_to Config.ui_root_url, failed: true
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jobs-api-0.2.1 app/controllers/sessions_controller.rb
jobs-api-0.2.0 app/controllers/sessions_controller.rb
jobs-api-0.1.2 app/controllers/sessions_controller.rb
jobs-api-0.1.1 app/controllers/sessions_controller.rb
jobs-api-0.1.0 app/controllers/sessions_controller.rb