Fix: Multiple accounts per mail address are allowed when not explicit forbidden
This commit is contained in:
		
					parent
					
						
							
								3f739d53c8
							
						
					
				
			
			
				commit
				
					
						cd79ce3a57
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -382,7 +382,7 @@ class User | ||||||
| 			throw new Exception(L10n::t('Not a valid email address.')); | 			throw new Exception(L10n::t('Not a valid email address.')); | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		if (dba::exists('user', ['email' => $email])) { | 		if (Config::get('system', 'block_extended_register', false) && dba::exists('user', ['email' => $email])) { | ||||||
| 			throw new Exception(L10n::t('Cannot use that email.')); | 			throw new Exception(L10n::t('Cannot use that email.')); | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue