Sha256: 851f9e07790b92d2606b0d01654e16ba2310198fad94e18ca7d0f18316c05e58

Contents?: true

Size: 287 Bytes

Versions: 2

Compression:

Stored size: 287 Bytes

Contents

module Socialite
  class UsersController < SocialiteController
    unloadable

    def new
      if current_user
        redirect_to main_app.root_path, notice: 'You are already registered.'
      end
      @user = env['omniauth.identity'] ||= Socialite.user_class.new
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
socialite-0.1.0.pre.5 app/controllers/socialite/users_controller.rb
socialite-0.1.0.pre.4 app/controllers/socialite/users_controller.rb