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