Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
257802e7
Commit
257802e7
authored
Dec 03, 2018
by
SilverFire - Dmitry Naumenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hid "Forgot your password" link from login menu when reset is disabled
parent
47419726
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
public/app/core/controllers/reset_password_ctrl.ts
+4
-0
public/app/partials/login.html
+1
-1
No files found.
public/app/core/controllers/reset_password_ctrl.ts
View file @
257802e7
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
)
{
...
...
public/app/partials/login.html
View file @
257802e7
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment