externalldap: when using cloudron source, disable local 2fa setup

This commit is contained in:
Girish Ramakrishnan
2024-01-20 11:35:27 +01:00
parent c99c24b3bd
commit 13b9bed48b
11 changed files with 42 additions and 27 deletions
+2 -1
View File
@@ -174,11 +174,12 @@
<input class="hide" type="submit" ng-disabled="useredit_form.$invalid || userEdit.busy"/>
</form>
<hr/>
<div>
<div ng-hide="userEdit.source && config.external2FA">
<p ng-hide="userEdit.userInfo.twoFactorAuthenticationEnabled">{{ 'users.passwordResetDialog.no2FASetup' | tr }}</p>
<p ng-show="userEdit.userInfo.twoFactorAuthenticationEnabled">{{ 'users.passwordResetDialog.2FAIsSetup' | tr }}</p>
<button type="button" class="btn btn-danger" ng-click="userEdit.reset2FA()" ng-disabled="!userEdit.userInfo.twoFactorAuthenticationEnabled || userEdit.reset2FABusy"><i class="fa fa-circle-notch fa-spin" ng-show="userEdit.reset2FABusy"></i> {{ 'users.passwordResetDialog.reset2FAAction' | tr }}</button>
</div>
<div ng-show="userEdit.source && config.external2FA"> {{ 'users.user.external2FA' | tr }}</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'main.dialog.cancel' | tr }}</button>