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();