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
649fe7e4
Commit
649fe7e4
authored
Aug 07, 2017
by
Daniel Lee
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v4.4.x'
parents
d285045f
0d253573
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
5 deletions
+17
-5
packaging/publish/publish_both.sh
+2
-0
packaging/publish/publish_testing.sh
+1
-0
pkg/api/login.go
+1
-0
pkg/middleware/auth_proxy_test.go
+4
-0
pkg/middleware/session.go
+8
-0
public/app/core/services/keybindingSrv.ts
+1
-5
No files found.
packaging/publish/publish_both.sh
View file @
649fe7e4
...
...
@@ -18,3 +18,5 @@ package_cloud push grafana/testing/el/7 grafana-${version}-1.x86_64.rpm
package_cloud push grafana/stable/el/7 grafana-
${
version
}
-1
.x86_64.rpm
package_cloud push grafana/stable/el/6 grafana-
${
version
}
-1
.x86_64.rpm
rm grafana
*
.
{
deb,rpm
}
packaging/publish/publish_testing.sh
View file @
649fe7e4
...
...
@@ -13,3 +13,4 @@ wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-${rpm_v
package_cloud push grafana/testing/el/6 grafana-
${
rpm_ver
}
.x86_64.rpm
package_cloud push grafana/testing/el/7 grafana-
${
rpm_ver
}
.x86_64.rpm
rm grafana
*
.
{
deb,rpm
}
pkg/api/login.go
View file @
649fe7e4
...
...
@@ -143,6 +143,7 @@ func loginUserWithUser(user *m.User, c *middleware.Context) {
c
.
SetSuperSecureCookie
(
user
.
Rands
+
user
.
Password
,
setting
.
CookieRememberName
,
user
.
Login
,
days
,
setting
.
AppSubUrl
+
"/"
)
}
c
.
Session
.
RegenerateId
(
c
)
c
.
Session
.
Set
(
middleware
.
SESS_KEY_USERID
,
user
.
Id
)
}
...
...
pkg/middleware/auth_proxy_test.go
View file @
649fe7e4
...
...
@@ -106,6 +106,10 @@ func (s *mockSession) Destory(c *Context) error {
return
nil
}
func
(
s
*
mockSession
)
RegenerateId
(
c
*
Context
)
error
{
return
nil
}
type
mockLdapAuthenticator
struct
{
syncSignedInUserCalled
bool
}
...
...
pkg/middleware/session.go
View file @
649fe7e4
...
...
@@ -103,6 +103,8 @@ type SessionStore interface {
Destory
(
*
Context
)
error
// init
Start
(
*
Context
)
error
// RegenerateId regenerates the session id
RegenerateId
(
*
Context
)
error
}
type
SessionWrapper
struct
{
...
...
@@ -116,6 +118,12 @@ func (s *SessionWrapper) Start(c *Context) error {
return
err
}
func
(
s
*
SessionWrapper
)
RegenerateId
(
c
*
Context
)
error
{
var
err
error
s
.
session
,
err
=
s
.
manager
.
RegenerateId
(
c
.
Context
)
return
err
}
func
(
s
*
SessionWrapper
)
Set
(
k
interface
{},
v
interface
{})
error
{
if
s
.
session
!=
nil
{
return
s
.
session
.
Set
(
k
,
v
)
...
...
public/app/core/services/keybindingSrv.ts
View file @
649fe7e4
...
...
@@ -214,12 +214,8 @@ export class KeybindingSrv {
if
(
popups
.
length
>
0
)
{
return
;
}
// close modals
var
modalData
=
$
(
".modal"
).
data
();
if
(
modalData
&&
modalData
.
$scope
&&
modalData
.
$scope
.
dismiss
)
{
modalData
.
$scope
.
dismiss
();
}
scope
.
appEvent
(
'hide-modal'
);
scope
.
appEvent
(
'hide-dash-editor'
);
scope
.
appEvent
(
'panel-change-view'
,
{
fullscreen
:
false
,
edit
:
false
});
});
...
...
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