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

parent 47419726
import coreModule from '../core_module'; import coreModule from '../core_module';
import config from 'app/core/config';
export class ResetPasswordCtrl { export class ResetPasswordCtrl {
/** @ngInject */ /** @ngInject */
...@@ -6,6 +7,9 @@ export class ResetPasswordCtrl { ...@@ -6,6 +7,9 @@ export class ResetPasswordCtrl {
contextSrv.sidemenu = false; contextSrv.sidemenu = false;
$scope.formModel = {}; $scope.formModel = {};
$scope.mode = 'send'; $scope.mode = 'send';
$scope.ldapEnabled = config.ldapEnabled;
$scope.authProxyEnabled = config.authProxyEnabled;
$scope.disableLoginForm = config.disableLoginForm;
const params = $location.search(); const params = $location.search();
if (params.code) { if (params.code) {
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<button type="submit" class="btn btn-large p-x-2 btn-inverse btn-loading" ng-if="loggingIn"> <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> Logging In<span>.</span><span>.</span><span>.</span>
</button> </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"> <a href="user/password/send-reset-email">
Forgot your password? Forgot your password?
</a> </a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment