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
aa261bbe
Commit
aa261bbe
authored
Jan 28, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Login: only enabled oauth options are shown on login page
parent
a5e450a0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
grafana
+1
-1
pkg/api/login.go
+4
-0
No files found.
grafana
@
017eab8d
Subproject commit
4572747bd60c688f7cc2cbf8a2303b9c95ad7b9d
Subproject commit
017eab8dcd182b8c19f65657fc3d46e30545b7ff
pkg/api/login.go
View file @
aa261bbe
...
@@ -22,6 +22,10 @@ func LoginView(c *middleware.Context) {
...
@@ -22,6 +22,10 @@ func LoginView(c *middleware.Context) {
return
return
}
}
settings
:=
c
.
Data
[
"Settings"
]
.
(
map
[
string
]
interface
{})
settings
[
"googleAuthEnabled"
]
=
setting
.
OAuthService
.
Google
settings
[
"githubAuthEnabled"
]
=
setting
.
OAuthService
.
GitHub
// Check auto-login.
// Check auto-login.
uname
:=
c
.
GetCookie
(
setting
.
CookieUserName
)
uname
:=
c
.
GetCookie
(
setting
.
CookieUserName
)
if
len
(
uname
)
==
0
{
if
len
(
uname
)
==
0
{
...
...
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