diff --git a/src/views/users.js b/src/views/users.js index ce21e35f0..63edee20e 100644 --- a/src/views/users.js +++ b/src/views/users.js @@ -871,7 +871,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio submit: function () { // prevent the current user from getting locked out - if ($scope.profileConfig.mandatory2FA && !$scope.userImport.twoFactorAuthenticationEnabled) return Client.notify('', $translate.instant('users.settings.require2FAWarning'), true, 'error', '#/profile'); + if ($scope.profileConfig.mandatory2FA && !$scope.userInfo.twoFactorAuthenticationEnabled) return Client.notify('', $translate.instant('users.settings.require2FAWarning'), true, 'error', '#/profile'); $scope.profileConfig.error = ''; $scope.profileConfig.busy = true;