profile: refresh 2fa status

This commit is contained in:
Girish Ramakrishnan
2021-06-16 08:37:38 -07:00
parent 3da97fb7cb
commit 5f78722c8f
+1 -1
View File
@@ -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();