mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 18:44:28 -04: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