From a19b672a83fa28dd8916335fef00e28f7dfe9e9b Mon Sep 17 00:00:00 2001 From: mlorb Date: Mon, 5 Mar 2018 13:12:44 +0100 Subject: [PATCH] change validation again --- app/controllers/users/registrations_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users/registrations_controller.rb b/app/controllers/users/registrations_controller.rb index b942a93ac..9adfc5e6c 100644 --- a/app/controllers/users/registrations_controller.rb +++ b/app/controllers/users/registrations_controller.rb @@ -182,7 +182,7 @@ class Users::RegistrationsController < Devise::RegistrationsController # Create new team for the new user @team = Team.new(team_provider_params) - if @team.valid? && @user.present? && Rails.configuration.x.new_team_on_signup + if @team.valid? && @user && Rails.configuration.x.new_team_on_signup # Set the confirmed_at == created_at IF not using email confirmations unless Rails.configuration.x.enable_email_confirmations @user.update!(confirmed_at: @user.created_at)