mandatory 2fa: Fix typo in 2FA check

This commit is contained in:
Girish Ramakrishnan
2022-03-13 23:21:19 -07:00
parent c0bbb6394a
commit 746bd64434

View File

@@ -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;