diff --git a/app/controllers/users/omniauth_callbacks_controller.rb b/app/controllers/users/omniauth_callbacks_controller.rb index 7cd4ee4..9983ee0 100644 --- a/app/controllers/users/omniauth_callbacks_controller.rb +++ b/app/controllers/users/omniauth_callbacks_controller.rb @@ -23,7 +23,7 @@ # The user is just registering the uid with us else # If the user could not be found by that uid then attach it to their record - if user.email.nil? + if user.email.nil? || user.email.empty? UserIdentifier.create!(identifier_scheme: scheme, identifier: request.env["omniauth.auth"].uid, user: current_user)