1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fixes for password confrim

This commit is contained in:
Benjamin Beganović 2024-03-07 18:55:36 +01:00
parent 7af6471b0b
commit 022a36c394

View File

@ -45,7 +45,7 @@ class ClientRegisterService
$rules[$field] = array_merge($rules[$field], ['email:rfc,dns', 'max:191', Rule::unique('client_contacts')->where('company_id', $this->company->id)]);
}
if ($field === 'current_password') {
if ($field === 'current_password' || $field === 'password') {
$rules[$field] = array_merge($rules[$field], ['string', 'min:6', 'confirmed']);
}
}