Sha256: a1e1490d65a530eacd5a346722e0c611f8a600b90230516337bc064dd7e57c40

Contents?: true

Size: 296 Bytes

Versions: 6

Compression:

Stored size: 296 Bytes

Contents

module Socialite
  class UsersController < SocialiteController
    unloadable

    def new
      if current_user
        redirect_to main_app.root_path, notice: I18n.t('socialite.already_registered')
      end
      @user = env['omniauth.identity'] ||= Socialite.user_class.new
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
socialite-0.2.1 app/controllers/socialite/users_controller.rb
socialite-0.2.0 app/controllers/socialite/users_controller.rb
socialite-0.1.2 app/controllers/socialite/users_controller.rb
socialite-0.1.1 app/controllers/socialite/users_controller.rb
socialite-0.1.0.pre.7 app/controllers/socialite/users_controller.rb
socialite-0.1.0.pre.6 app/controllers/socialite/users_controller.rb