mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 23:07:32 -05:00 
			
		
		
		
	Merge pull request #6569 from turbo124/v5-develop
Update all contact password if multiple contacts have the same email …
This commit is contained in:
		
						commit
						9df1c0bf02
					
				@ -67,6 +67,8 @@ class ClientContactRepository extends BaseRepository
 | 
			
		||||
 | 
			
		||||
            if (array_key_exists('password', $contact) && strlen($contact['password']) > 1) {
 | 
			
		||||
                $update_contact->password = Hash::make($contact['password']);
 | 
			
		||||
 | 
			
		||||
                $client->company->client_contacts()->where('email', $update_contact->email)->update(['password' => $update_contact->password]);
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            $update_contact->save();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user