Hid "Forgot your password" link from login menu when reset is disabled

This commit is contained in:
SilverFire - Dmitry Naumenko 2018-12-03 15:30:49 +02:00
parent 474197269e
commit 257802e750
2 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import coreModule from '../core_module';
import config from 'app/core/config';
export class ResetPasswordCtrl {
/** @ngInject */
@ -6,6 +7,9 @@ export class ResetPasswordCtrl {
contextSrv.sidemenu = false;
$scope.formModel = {};
$scope.mode = 'send';
$scope.ldapEnabled = config.ldapEnabled;
$scope.authProxyEnabled = config.authProxyEnabled;
$scope.disableLoginForm = config.disableLoginForm;
const params = $location.search();
if (params.code) {

View File

@ -22,7 +22,7 @@
<button type="submit" class="btn btn-large p-x-2 btn-inverse btn-loading" ng-if="loggingIn">
Logging In<span>.</span><span>.</span><span>.</span>
</button>
<div class="small login-button-forgot-password">
<div class="small login-button-forgot-password" ng-hide="ldapEnabled || authProxyEnabled">
<a href="user/password/send-reset-email">
Forgot your password?
</a>