diff options
author | Robert Speicher <robert@gitlab.com> | 2015-06-24 19:24:20 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2015-06-24 19:24:20 +0000 |
commit | d2de219f6cf5d6ce371f529988f9337653878e58 (patch) | |
tree | b37da0f9b071353cfaaf097804951f262a95be2d /lib/api/entities.rb | |
parent | c465af093096990ee42b3021fce157d02b8864cb (diff) | |
parent | 6548e9b48c079bb29cfe61eff99179e880583641 (diff) | |
download | gitlab-ce-d2de219f6cf5d6ce371f529988f9337653878e58.tar.gz |
Merge branch 'add-2fa-status-to-admin-api' into 'master'
Add 2FA status to user admin API
This MR adds the `two_factor_enabled` field to the admin's API to indicate whether a given user has enabled 2FA.
See merge request !881
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index b23eff3661c..14a8f929d76 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -24,6 +24,7 @@ module API expose :identities, using: Entities::Identity expose :can_create_group?, as: :can_create_group expose :can_create_project?, as: :can_create_project + expose :two_factor_enabled end class UserLogin < UserFull |