From 257802e75096fb3b6f19bbf20d7fd1ef6e2a1ce3 Mon Sep 17 00:00:00 2001 From: SilverFire - Dmitry Naumenko Date: Mon, 3 Dec 2018 15:30:49 +0200 Subject: [PATCH] Hid "Forgot your password" link from login menu when reset is disabled --- public/app/core/controllers/reset_password_ctrl.ts | 4 ++++ public/app/partials/login.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/public/app/core/controllers/reset_password_ctrl.ts b/public/app/core/controllers/reset_password_ctrl.ts index 933655399e8..9ad6864ece2 100644 --- a/public/app/core/controllers/reset_password_ctrl.ts +++ b/public/app/core/controllers/reset_password_ctrl.ts @@ -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) { diff --git a/public/app/partials/login.html b/public/app/partials/login.html index a2bc8173766..f4237e7b1ec 100644 --- a/public/app/partials/login.html +++ b/public/app/partials/login.html @@ -22,7 +22,7 @@ -
+