mirror of
https://github.com/bitwarden/web
synced 2025-12-06 00:03:28 +00:00
allow totp if from an org with totp
This commit is contained in:
@@ -10,11 +10,11 @@
|
||||
|
||||
authService.getUserProfile().then(function (profile) {
|
||||
$scope.useTotp = profile.premium;
|
||||
});
|
||||
|
||||
apiService.logins.get({ id: loginId }, function (login) {
|
||||
return apiService.logins.get({ id: loginId }).$promise;
|
||||
}).then(function (login) {
|
||||
$scope.login = cipherService.decryptLogin(login);
|
||||
$scope.readOnly = !login.Edit;
|
||||
$scope.useTotp = $scope.useTotp || $scope.login.organizationUseTotp;
|
||||
});
|
||||
|
||||
$scope.save = function (model) {
|
||||
|
||||
Reference in New Issue
Block a user