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
e3bd51e3
Commit
e3bd51e3
authored
Aug 21, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: remove duplicate set-cookie when logging in, fixes #9013
parent
e8a20643
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
pkg/api/login.go
+2
-0
No files found.
pkg/api/login.go
View file @
e3bd51e3
...
...
@@ -137,6 +137,8 @@ func loginUserWithUser(user *m.User, c *middleware.Context) {
log
.
Error
(
3
,
"User login with nil user"
)
}
c
.
Resp
.
Header
()
.
Del
(
"Set-Cookie"
)
days
:=
86400
*
setting
.
LogInRememberDays
if
days
>
0
{
c
.
SetCookie
(
setting
.
CookieUserName
,
user
.
Login
,
days
,
setting
.
AppSubUrl
+
"/"
)
...
...
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