Skip to content

Commit

Permalink
Added a swtich to have a possibility to reset 2FA.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanbaidan committed Jun 20, 2023
1 parent c925ae3 commit 4240819
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -1997,6 +1997,10 @@ msgstr "Chiffrement"
msgid "Enforce 2FA"
msgstr "Appliquer 2FA"

#: views/dialogs/create.clients.html:90
msgid "Reset 2FA"
msgstr "Réinitialiser 2FA"

#: ../ng_anr/views/__external_translate.html:17
msgid "English"
msgstr "Anglais"
Expand Down
4 changes: 4 additions & 0 deletions po/template.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2257,6 +2257,10 @@ msgstr ""
msgid "Enforce 2FA"
msgstr ""

#: views/dialogs/create.clients.html:90
msgid "Reset 2FA"
msgstr ""

#: ../ng_anr/views/__external_translate.html:17
msgid "English"
msgstr ""
Expand Down
2 changes: 2 additions & 0 deletions src/BackofficeClientMgmtCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,15 @@

if (client != undefined && client != null) {
$scope.client = client;
$scope.client.resetTwoFactorAuth = false
} else {
$scope.client = {
name: '',
proxyAlias: '',
contact_email: '',
model_id: [],
twoFactorAuthEnforced: true,
resetTwoFactorAuth: false,
isBackgroundImportActive: false,
};
}
Expand Down
4 changes: 4 additions & 0 deletions views/dialogs/create.clients.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ <h2 ng-if="client.id" translate>Edit client</h2>
<md-switch class="no-margin" ng-model="client.twoFactorAuthEnforced">{{ 'Enforce 2FA' | translate }}</md-switch>
</md-input-container>

<md-input-container class="md-block" flex ng-if="client.id">
<md-switch class="no-margin" ng-model="client.resetTwoFactorAuth">{{ 'Reset 2FA' | translate }}</md-switch>
</md-input-container>

<md-input-container class="md-block" flex>
<md-switch class="no-margin" ng-model="client.isBackgroundImportActive">{{ 'Activate background import' | translate }}</md-switch>
</md-input-container>
Expand Down

0 comments on commit 4240819

Please sign in to comment.