mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 14:12:44 +01:00
Trim passwords on update
This commit is contained in:
parent
6ed6a001c1
commit
06f5c0ae22
@ -77,7 +77,11 @@ class UpdateUserRequest extends Request
|
||||
unset($input['oauth_user_token']);
|
||||
}
|
||||
|
||||
|
||||
if(isset($input['password']) && strlen($input['password'] ?? '') > 1)
|
||||
{
|
||||
$input['password'] = trim($input['password']);
|
||||
}
|
||||
|
||||
$this->replace($input);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user