]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1511466 follow-up - formatting and nit
authorDylan William Hardison <dylan@hardison.net>
Thu, 6 Dec 2018 18:54:36 +0000 (13:54 -0500)
committerDylan William Hardison <dylan@hardison.net>
Thu, 6 Dec 2018 18:54:36 +0000 (13:54 -0500)
Bugzilla/Quantum/API.pm

index 89a33a5d3b538aa01a682760298c646829dc5b92..82e49754aba124a5eb119414e6d4c339df1f01e7 100644 (file)
@@ -22,12 +22,12 @@ sub user_profile {
   if ($user && $user->id) {
     $self->render(
       json => {
-        id     => $user->id,
-        name   => $user->name,
-        login  => $user->login,
-        nick   => $user->nick,
-        groups => [map { $_->name } @{$user->groups}],
-        mfa    => $user->mfa,
+        id                    => $user->id,
+        name                  => $user->name,
+        login                 => $user->login,
+        nick                  => $user->nick,
+        groups                => [map { $_->name } @{$user->groups}],
+        mfa                   => lc($user->mfa),
         mfa_required_by_group => $user->in_mfa_group ? true : false,
       }
     );