1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fixes for users

This commit is contained in:
David Bomba 2022-08-05 17:42:54 +10:00
parent 96191ff1f1
commit 5cd8307686

View File

@ -97,6 +97,7 @@ class UserRepository extends BaseRepository
$cu->tokens()->restore();
$cu->save();
//05-08-2022
if($cu->tokens()->count() == 0){
(new CreateCompanyToken($cu->company, $cu->user, 'restored_user'))->handle();
}