mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 03:40:09 -05:00 
			
		
		
		
	Trim emails
This commit is contained in:
		
							parent
							
								
									916c5e4da8
								
							
						
					
					
						commit
						2bed8fc972
					
				@ -60,6 +60,8 @@ class StoreUserRequest extends Request
 | 
			
		||||
 | 
			
		||||
//unique user rule - check company_user table for user_id / company_id  / account_id if none exist we can add the user. ELSE return false
 | 
			
		||||
 | 
			
		||||
        if(array_key_exists('email', $input))
 | 
			
		||||
            $input['email'] = trim($input['email']);
 | 
			
		||||
 | 
			
		||||
        if (isset($input['company_user'])) {
 | 
			
		||||
            if (! isset($input['company_user']['is_admin'])) {
 | 
			
		||||
 | 
			
		||||
@ -45,6 +45,8 @@ class UpdateUserRequest extends Request
 | 
			
		||||
    {
 | 
			
		||||
        $input = $this->all();
 | 
			
		||||
 | 
			
		||||
        if(array_key_exists('email', $input))
 | 
			
		||||
            $input['email'] = trim($input['email']);
 | 
			
		||||
 | 
			
		||||
        $this->replace($input);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user