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
23558c61
Commit
23558c61
authored
Jul 31, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: wip work on #8768
parent
8ca08d65
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
conf/defaults.ini
+5
-0
pkg/setting/setting.go
+6
-0
No files found.
conf/defaults.ini
View file @
23558c61
...
...
@@ -204,6 +204,11 @@ login_hint = email or username
# Default UI theme ("dark" or "light")
default_theme
=
dark
# External user management
external_manage_link_url
=
external_manage_link_name
=
external_manage_info
=
[auth]
# Set to true to disable (hide) the login form, useful if you use OAuth
disable_login_form
=
false
...
...
pkg/setting/setting.go
View file @
23558c61
...
...
@@ -99,6 +99,9 @@ var (
DefaultTheme
string
DisableLoginForm
bool
DisableSignoutMenu
bool
ManageUsersLinkUrl
string
ManageUsersLinkName
string
ManageUsersInfo
string
// Http auth
AdminUser
string
...
...
@@ -531,6 +534,9 @@ func NewConfigContext(args *CommandLineArgs) error {
VerifyEmailEnabled
=
users
.
Key
(
"verify_email_enabled"
)
.
MustBool
(
false
)
LoginHint
=
users
.
Key
(
"login_hint"
)
.
String
()
DefaultTheme
=
users
.
Key
(
"default_theme"
)
.
String
()
ManageUsersLinkUrl
=
users
.
Key
(
"external_manage_link_url"
)
.
String
()
ManageUsersLinkName
=
users
.
Key
(
"external_manage_link_name"
)
.
String
()
ManageUsersInfo
=
users
.
Key
(
"external_manage_info"
)
.
String
()
// auth
auth
:=
Cfg
.
Section
(
"auth"
)
...
...
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