mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Ensure Unique Emails
This commit is contained in:
parent
13f8aa2140
commit
c3945a1bac
@ -47,7 +47,7 @@ class RegisterRequest extends FormRequest
|
||||
|
||||
foreach ($rules as $field => $properties) {
|
||||
if ($field === 'email') {
|
||||
$rules[$field] = array_merge($rules[$field], ['email:rfc,dns', 'max:255', Rule::unique('client_contacts')->where('company_id', $this->company()->id)]);
|
||||
$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') {
|
||||
|
Loading…
Reference in New Issue
Block a user