Sha256: 004088ab8fffb863e4c10d3776ffedac14e54fc31cf41fae8945d83b8823fb37
Contents?: true
Size: 388 Bytes
Versions: 3
Compression:
Stored size: 388 Bytes
Contents
class Admin::Auth::OmniauthCallbacksController < ::Devise::OmniauthCallbacksController layout 'admin' helper 'admin/admin' def google_apps domain = Slices::Config.google_apps_domain @admin = Admin.find_for_domain(domain) if @admin.persisted? sign_in_and_redirect @admin, event: :authentication else redirect_to new_admin_session_path end end end
Version data entries
3 entries across 3 versions & 1 rubygems