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
ff483f37
Commit
ff483f37
authored
Jan 24, 2019
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removes old cookie auth configuration
parent
56a521b2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
23 deletions
+0
-23
conf/defaults.ini
+0
-8
conf/sample.ini
+0
-8
pkg/services/auth/auth_token_test.go
+0
-1
pkg/setting/setting.go
+0
-6
No files found.
conf/defaults.ini
View file @
ff483f37
...
...
@@ -116,9 +116,6 @@ cookie_name = grafana_session
# If you want login cookies to be https only. default is false
cookie_secure
=
false
# Logged in user name
cookie_username
=
grafana_user
# How many days an session can be unused before we inactivate it
login_remember_days
=
7
...
...
@@ -198,11 +195,6 @@ admin_password = admin
# used for signing
secret_key
=
SW2YcwTIb9zpOOhoPsMm
# Auto-login remember days
login_remember_days
=
7
cookie_username
=
grafana_user
cookie_remember_name
=
grafana_remember
# disable gravatar profile images
disable_gravatar
=
false
...
...
conf/sample.ini
View file @
ff483f37
...
...
@@ -112,9 +112,6 @@ log_queries =
# If you want login cookies to be https only. default is false
;cookie_secure = false
# Logged in user name
;cookie_username = grafana_user
# How many days an session can be unused before we inactivate it
;login_remember_days = 7
...
...
@@ -184,11 +181,6 @@ log_queries =
# used for signing
;secret_key = SW2YcwTIb9zpOOhoPsMm
# Auto-login remember days
;login_remember_days = 7
;cookie_username = grafana_user
;cookie_remember_name = grafana_remember
# disable gravatar profile images
;disable_gravatar = false
...
...
pkg/services/auth/auth_token_test.go
View file @
ff483f37
...
...
@@ -303,7 +303,6 @@ func createTestContext(t *testing.T) *testContext {
}
UrgentRotateTime
=
time
.
Minute
setting
.
LogInRememberDays
=
7
return
&
testContext
{
sqlstore
:
sqlstore
,
...
...
pkg/setting/setting.go
View file @
ff483f37
...
...
@@ -83,9 +83,6 @@ var (
// Security settings.
SecretKey
string
LogInRememberDays
int
CookieUserName
string
CookieRememberName
string
DisableGravatar
bool
EmailCodeValidMinutes
int
DataProxyWhiteList
map
[
string
]
bool
...
...
@@ -603,9 +600,6 @@ func (cfg *Cfg) Load(args *CommandLineArgs) error {
// read security settings
security
:=
iniFile
.
Section
(
"security"
)
SecretKey
=
security
.
Key
(
"secret_key"
)
.
String
()
LogInRememberDays
=
security
.
Key
(
"login_remember_days"
)
.
MustInt
()
CookieUserName
=
security
.
Key
(
"cookie_username"
)
.
String
()
CookieRememberName
=
security
.
Key
(
"cookie_remember_name"
)
.
String
()
DisableGravatar
=
security
.
Key
(
"disable_gravatar"
)
.
MustBool
(
true
)
cfg
.
DisableBruteForceLoginProtection
=
security
.
Key
(
"disable_brute_force_login_protection"
)
.
MustBool
(
false
)
DisableBruteForceLoginProtection
=
cfg
.
DisableBruteForceLoginProtection
...
...
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