WIP (#15222)
This commit is contained in:
		
							parent
							
								
									741d0952b1
								
							
						
					
					
						commit
						af8fe6e1e9
					
				
					 2 changed files with 1 additions and 2 deletions
				
			
		|  | @ -68,7 +68,6 @@ module Omniauthable | ||||||
|     def user_params_from_auth(email, auth) |     def user_params_from_auth(email, auth) | ||||||
|       { |       { | ||||||
|         email: email || "#{TEMP_EMAIL_PREFIX}-#{auth.uid}-#{auth.provider}.com", |         email: email || "#{TEMP_EMAIL_PREFIX}-#{auth.uid}-#{auth.provider}.com", | ||||||
|         password: Devise.friendly_token[0, 20], |  | ||||||
|         agreement: true, |         agreement: true, | ||||||
|         external: true, |         external: true, | ||||||
|         account_attributes: { |         account_attributes: { | ||||||
|  |  | ||||||
|  | @ -468,7 +468,7 @@ class User < ApplicationRecord | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   def validate_email_dns? |   def validate_email_dns? | ||||||
|     email_changed? && !(Rails.env.test? || Rails.env.development?) |     email_changed? && !external? && !(Rails.env.test? || Rails.env.development?) | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   def invite_text_required? |   def invite_text_required? | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue