Skip to content

Commit

Permalink
#1317 Hide mfa user settings section if auth.multifactor.enabled = false
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed May 23, 2020
1 parent 15813a6 commit b274373
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/app/scripts/controllers/SettingsCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
};

$scope.canChangePass = appConfig.config.capabilities.indexOf('changePassword') !== -1;
$scope.canChangeMfa = appConfig.config.capabilities.indexOf('mfa') !== -1;


$scope.updateBasicInfo = function(form) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/views/partials/personal-settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ <h3 class="box-title"><input type="checkbox" ng-model="passData.changePassword"
</form>

<!-- Update mfa -->
<form class="mt-s" name="mfaForm" ng-submit="setMfaSettings(mfaForm);" novalidate>
<form ng-if="canChangeMfa" class="mt-s" name="mfaForm" ng-submit="setMfaSettings(mfaForm);" novalidate>
<div class="box">
<div class="box-header">
<h3 class="box-title">
Expand Down

0 comments on commit b274373

Please sign in to comment.