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
66e60357
Commit
66e60357
authored
Jun 13, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set email when creating user from auth_proxy header, Fixes #2156
parent
30db7e64
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
pkg/middleware/auth_proxy.go
+2
-0
No files found.
pkg/middleware/auth_proxy.go
View file @
66e60357
...
...
@@ -60,8 +60,10 @@ func getCreateUserCommandForProxyAuth(headerVal string) *m.CreateUserCommand {
cmd
:=
m
.
CreateUserCommand
{}
if
setting
.
AuthProxyHeaderProperty
==
"username"
{
cmd
.
Login
=
headerVal
cmd
.
Email
=
headerVal
}
else
if
setting
.
AuthProxyHeaderProperty
==
"email"
{
cmd
.
Email
=
headerVal
cmd
.
Login
=
headerVal
}
else
{
panic
(
"Auth proxy header property invalid"
)
}
...
...
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