mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #9703 from turbo124/v5-develop
Trim passwords on update
This commit is contained in:
commit
fb6779095b
@ -77,7 +77,11 @@ class UpdateUserRequest extends Request
|
|||||||
unset($input['oauth_user_token']);
|
unset($input['oauth_user_token']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(isset($input['password']) && strlen($input['password'] ?? '') > 1)
|
||||||
|
{
|
||||||
|
$input['password'] = trim($input['password']);
|
||||||
|
}
|
||||||
|
|
||||||
$this->replace($input);
|
$this->replace($input);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
<div class="grid grid-cols-12 gap-4 mt-10">
|
<div class="grid grid-cols-12 gap-4 mt-10">
|
||||||
@if($register_company->client_registration_fields)
|
@if($register_company->client_registration_fields)
|
||||||
@foreach($register_company->client_registration_fields as $field)
|
@foreach($register_company->client_registration_fields as $field)
|
||||||
@if($field['visible'])
|
@if(isset($field['visible']) && $field['visible'])
|
||||||
<div class="col-span-12 md:col-span-6">
|
<div class="col-span-12 md:col-span-6">
|
||||||
<section class="flex items-center">
|
<section class="flex items-center">
|
||||||
<label
|
<label
|
||||||
|
Loading…
x
Reference in New Issue
Block a user