Skip to content

Commit c5cfb3e

Browse files
committed
Add two_factor_enabled field to admin user. Fixes #99
1 parent dcf1f20 commit c5cfb3e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/Gitlab/Model/User.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
* @property-read bool $can_create_group
2828
* @property-read bool $can_create_project
2929
* @property-read string $avatar_url
30+
* @property-read string $current_sign_in_at
31+
* @property-read bool $two_factor_enabled
3032
*/
3133
class User extends AbstractModel
3234
{
@@ -57,7 +59,8 @@ class User extends AbstractModel
5759
'can_create_group',
5860
'can_create_project',
5961
'avatar_url',
60-
'current_sign_in_at'
62+
'current_sign_in_at',
63+
'two_factor_enabled'
6164
);
6265

6366
/**

0 commit comments

Comments
 (0)