mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-05 21:34:36 -04:00
Rename password
validation rule
This commit is contained in:
parent
e1157a6ff1
commit
3811375a34
@ -40,7 +40,7 @@ class RegisterRequest extends FormRequest
|
|||||||
$rules[$field] = array_merge($rules[$field], ['email:rfc,dns', 'max:255']);
|
$rules[$field] = array_merge($rules[$field], ['email:rfc,dns', 'max:255']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($field === 'password') {
|
if ($field === 'current_password') {
|
||||||
$rules[$field] = array_merge($rules[$field], ['string', 'min:6', 'confirmed']);
|
$rules[$field] = array_merge($rules[$field], ['string', 'min:6', 'confirmed']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user