From 5f78722c8fd0daaefdb69baa11745f34e47bba32 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 16 Jun 2021 08:37:38 -0700 Subject: [PATCH] profile: refresh 2fa status --- src/views/profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/profile.js b/src/views/profile.js index 7ab63e49b..0159aef7b 100644 --- a/src/views/profile.js +++ b/src/views/profile.js @@ -313,7 +313,6 @@ angular.module('Application').controller('ProfileController', ['$scope', '$trans return; } - // update user info in the background Client.refreshUserInfo(); $scope.emailchange.reset(); @@ -603,6 +602,7 @@ angular.module('Application').controller('ProfileController', ['$scope', '$trans Client.onReady(function () { $scope.appPassword.refresh(); $scope.tokens.refresh(); + Client.refreshUserInfo(); // 2fa status might have changed by admin $translate.onReady(function () { var usedLang = $translate.use() || $translate.fallbackLanguage();