1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 08:51:34 +02:00

Merge pull request #5211 from turbo124/v5-develop

Small type check fix
This commit is contained in:
David Bomba 2021-03-22 17:47:27 +11:00 committed by GitHub
commit 608d085c5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ class UserTransformer extends EntityTransformer
'last_confirmed_email_address' => (string) $user->last_confirmed_email_address ?: '', 'last_confirmed_email_address' => (string) $user->last_confirmed_email_address ?: '',
'google_2fa_secret' => (bool) $user->google_2fa_secret, 'google_2fa_secret' => (bool) $user->google_2fa_secret,
'has_password' => (bool) $user->has_password, 'has_password' => (bool) $user->has_password,
'oauth_user_token' => strlen($user->oauth_user_token) >=1 ? '***' : '', 'oauth_user_token' => empty($user->oauth_user_token) ? '' : '***',
]; ];
} }