disable app passwords in the UI if auth_internal is not loaded
This commit is contained in:
parent
a9d8fd8bdc
commit
dc25a9cf68
|
@ -533,7 +533,11 @@ class Pref_Prefs extends Handler_Protected {
|
||||||
<?php $this->index_auth_password() ?>
|
<?php $this->index_auth_password() ?>
|
||||||
</div>
|
</div>
|
||||||
<div dojoType='dijit.layout.ContentPane' title="<?= __('App passwords') ?>">
|
<div dojoType='dijit.layout.ContentPane' title="<?= __('App passwords') ?>">
|
||||||
<?php $this->index_auth_app_passwords() ?>
|
<?php if (PluginHost::getInstance()->get_plugin('auth_internal')) { ?>
|
||||||
|
<?php $this->index_auth_app_passwords() ?>
|
||||||
|
<?php } else { ?>
|
||||||
|
<?= format_warning("App passwords are only available if <b>auth_internal<b> plugin is enabled."); ?>
|
||||||
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
<div dojoType='dijit.layout.ContentPane' title="<?= __('Authenticator (OTP)') ?>">
|
<div dojoType='dijit.layout.ContentPane' title="<?= __('Authenticator (OTP)') ?>">
|
||||||
<?php $this->index_auth_2fa() ?>
|
<?php $this->index_auth_2fa() ?>
|
||||||
|
|
Loading…
Reference in New Issue