mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Improve user migrations
This commit is contained in:
parent
3b72fa343f
commit
3ed8479411
@ -424,7 +424,10 @@ class Import implements ShouldQueue
|
||||
unset($modified['password']); //cant import passwords.
|
||||
|
||||
$user = $user_repository->save($modified, $this->fetchUser($resource['email']), true, true);
|
||||
|
||||
$user->email_verified_at = now();
|
||||
$user->confirmation_code = '';
|
||||
$user->save();
|
||||
|
||||
$user_agent = array_key_exists('token_name', $resource) ?: request()->server('HTTP_USER_AGENT');
|
||||
|
||||
CreateCompanyToken::dispatchNow($this->company, $user, $user_agent);
|
||||
|
Loading…
Reference in New Issue
Block a user