Refresh the user profile on 2fa status change

This commit is contained in:
Johannes Zellner
2018-04-26 16:54:03 +02:00
parent 46aac0288c
commit 05b6740e07
+4
View File
@@ -65,6 +65,8 @@ angular.module('Application').controller('AccountController', ['$scope', 'Client
return;
}
Client.refreshUserInfo();
$('#twoFactorAuthenticationEnableModal').modal('hide');
});
},
@@ -85,6 +87,8 @@ angular.module('Application').controller('AccountController', ['$scope', 'Client
return;
}
Client.refreshUserInfo();
$('#twoFactorAuthenticationDisableModal').modal('hide');
});
}