mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 19:24:10 +08:00
change validation again
This commit is contained in:
parent
d19ca7fbdc
commit
a19b672a83
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue