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
b3816a27
Commit
b3816a27
authored
Nov 29, 2019
by
Peter Holmberg
Committed by
Torkel Ödegaard
Nov 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Navigation: Fix navigation when new password is chosen (#20747)
parent
71792d69
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
33 deletions
+37
-33
public/app/core/components/Login/LoginServiceButtons.tsx
+36
-32
public/app/partials/reset_password.html
+1
-1
No files found.
public/app/core/components/Login/LoginServiceButtons.tsx
View file @
b3816a27
import
React
from
'react'
;
import
config
from
'app/core/config'
;
const
loginServices
:
()
=>
LoginServices
=
()
=>
({
saml
:
{
enabled
:
config
.
samlEnabled
,
name
:
'SAML'
,
className
:
'github'
,
icon
:
'key'
,
},
google
:
{
enabled
:
config
.
oauth
.
google
,
name
:
'Google'
,
},
github
:
{
enabled
:
config
.
oauth
.
github
,
name
:
'GitHub'
,
},
gitlab
:
{
enabled
:
config
.
oauth
.
gitlab
,
name
:
'GitLab'
,
},
grafanacom
:
{
enabled
:
config
.
oauth
.
grafana_com
,
name
:
'Grafana.com'
,
hrefName
:
'grafana_com'
,
icon
:
'grafana_com'
,
},
oauth
:
{
enabled
:
config
.
oauth
.
generic_oauth
,
name
:
config
.
oauth
.
generic_oauth
?
config
.
oauth
.
generic_oauth
.
name
:
'OAuth'
,
icon
:
'sign-in'
,
hrefName
:
'generic_oauth'
,
},
});
const
loginServices
:
()
=>
LoginServices
=
()
=>
{
const
oauthEnabled
=
!!
config
.
oauth
;
return
{
saml
:
{
enabled
:
config
.
samlEnabled
,
name
:
'SAML'
,
className
:
'github'
,
icon
:
'key'
,
},
google
:
{
enabled
:
oauthEnabled
&&
config
.
oauth
.
google
,
name
:
'Google'
,
},
github
:
{
enabled
:
oauthEnabled
&&
config
.
oauth
.
github
,
name
:
'GitHub'
,
},
gitlab
:
{
enabled
:
oauthEnabled
&&
config
.
oauth
.
gitlab
,
name
:
'GitLab'
,
},
grafanacom
:
{
enabled
:
oauthEnabled
&&
config
.
oauth
.
grafana_com
,
name
:
'Grafana.com'
,
hrefName
:
'grafana_com'
,
icon
:
'grafana_com'
,
},
oauth
:
{
enabled
:
oauthEnabled
&&
config
.
oauth
.
generic_oauth
,
name
:
oauthEnabled
&&
config
.
oauth
.
generic_oauth
?
config
.
oauth
.
generic_oauth
.
name
:
'OAuth'
,
icon
:
'sign-in'
,
hrefName
:
'generic_oauth'
,
},
};
};
export
interface
LoginService
{
enabled
:
boolean
;
...
...
public/app/partials/reset_password.html
View file @
b3816a27
...
...
@@ -10,7 +10,7 @@
<div
ng-if=
"disableLoginForm"
>
You cannot reset password when login form is disabled.
</div>
<form
name=
"sendResetForm"
class=
"login-form gf-form-group"
ng-show=
"mode === 'send'"
ng-hide=
"ldapEnabled || authProxyEnabled || disableLoginForm"
>
<form
name=
"sendResetForm"
class=
"login-form gf-form-group"
ng-show=
"mode === 'send'"
ng-hide=
"ldapEnabled || authProxyEnabled || disableLoginForm
|| mode === 'reset'
"
>
<div
class=
"gf-form"
>
<span
class=
"gf-form-label width-7"
>
User
</span>
<input
type=
"text"
name=
"username"
class=
"gf-form-input max-width-14"
required
ng-model=
'formModel.userOrEmail'
placeholder=
"email or username"
>
...
...
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