app/controllers/ucb_rails_user/concerns/sessions_controller.rb
# Login user after authentication by provider
#
# @return [nil]
Login user after authentication by provider
Login user after authentication by provider
def create
    uid = request.env['omniauth.auth'].uid
    session[:omniauth_provider] = request.env['omniauth.auth'].provider
    if user_session_manager.login(uid)
      session[:uid] = uid
      redirect_to session[:original_url] || root_path
    else
      redirect_to not_authorized_path
    end
  end
def create uid = request . env [ 'omniauth.auth' ] . uid session [ :omniauth_provider ] = request . env [ 'omniauth.auth' ] . provider if user_session_manager . login ( uid ) session [ :uid ] = uid redirect_to session [ :original_url ] || root_path else redirect_to not_authorized_path end end
Login user after authentication by provider
Login user after authentication by provider
None
nil