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
1e06f3f5
Commit
1e06f3f5
authored
Jan 18, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:grafana/grafana
parents
00802d03
899a44a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
pkg/login/auth.go
+2
-1
public/app/core/utils/kbn.js
+15
-3
No files found.
pkg/login/auth.go
View file @
1e06f3f5
...
...
@@ -3,6 +3,7 @@ package login
import
(
"errors"
"crypto/subtle"
"github.com/grafana/grafana/pkg/bus"
m
"github.com/grafana/grafana/pkg/models"
"github.com/grafana/grafana/pkg/setting"
...
...
@@ -56,7 +57,7 @@ func loginUsingGrafanaDB(query *LoginUserQuery) error {
user
:=
userQuery
.
Result
passwordHashed
:=
util
.
EncodePassword
(
query
.
Password
,
user
.
Salt
)
if
passwordHashed
!=
user
.
Password
{
if
subtle
.
ConstantTimeCompare
([]
byte
(
passwordHashed
),
[]
byte
(
user
.
Password
))
!=
1
{
return
ErrInvalidCredentials
}
...
...
public/app/core/utils/kbn.js
View file @
1e06f3f5
...
...
@@ -352,9 +352,15 @@ function($, _) {
kbn
.
valueFormats
.
gbytes
=
kbn
.
formatBuilders
.
binarySIPrefix
(
'B'
,
3
);
// Data Rate
kbn
.
valueFormats
.
pps
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'pps'
);
kbn
.
valueFormats
.
bps
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'bps'
);
kbn
.
valueFormats
.
Bps
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'Bps'
);
kbn
.
valueFormats
.
pps
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'pps'
);
kbn
.
valueFormats
.
bps
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'bps'
);
kbn
.
valueFormats
.
Bps
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'Bps'
);
kbn
.
valueFormats
.
KBs
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'Bs'
,
1
);
kbn
.
valueFormats
.
Kbits
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'bits'
,
1
);
kbn
.
valueFormats
.
MBs
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'Bs'
,
2
);
kbn
.
valueFormats
.
Mbits
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'bits'
,
2
);
kbn
.
valueFormats
.
GBs
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'Bs'
,
3
);
kbn
.
valueFormats
.
Gbits
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'bits'
,
3
);
// Throughput
kbn
.
valueFormats
.
ops
=
kbn
.
formatBuilders
.
simpleCountUnit
(
'ops'
);
...
...
@@ -595,6 +601,12 @@ function($, _) {
{
text
:
'packets/sec'
,
value
:
'pps'
},
{
text
:
'bits/sec'
,
value
:
'bps'
},
{
text
:
'bytes/sec'
,
value
:
'Bps'
},
{
text
:
'kilobites/sec'
,
value
:
'Kbits'
},
{
text
:
'kilobytes/sec'
,
value
:
'KBs'
},
{
text
:
'megabites/sec'
,
value
:
'Mbits'
},
{
text
:
'megabytes/sec'
,
value
:
'MBs'
},
{
text
:
'gigabytes/sec'
,
value
:
'GBs'
},
{
text
:
'gigabites/sec'
,
value
:
'Gbits'
},
]
},
{
...
...
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