mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-29 17:38:04 +01:00
allow totp if from an org with totp
This commit is contained in:
parent
08b432775e
commit
11cbe3b7bb
@ -10,11 +10,11 @@
|
|||||||
|
|
||||||
authService.getUserProfile().then(function (profile) {
|
authService.getUserProfile().then(function (profile) {
|
||||||
$scope.useTotp = profile.premium;
|
$scope.useTotp = profile.premium;
|
||||||
});
|
return apiService.logins.get({ id: loginId }).$promise;
|
||||||
|
}).then(function (login) {
|
||||||
apiService.logins.get({ id: loginId }, function (login) {
|
|
||||||
$scope.login = cipherService.decryptLogin(login);
|
$scope.login = cipherService.decryptLogin(login);
|
||||||
$scope.readOnly = !login.Edit;
|
$scope.readOnly = !login.Edit;
|
||||||
|
$scope.useTotp = $scope.useTotp || $scope.login.organizationUseTotp;
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.save = function (model) {
|
$scope.save = function (model) {
|
||||||
|
Loading…
Reference in New Issue
Block a user