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
26779e07
Commit
26779e07
authored
Mar 11, 2019
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge PR #15868 password hint
parents
4a70d4ef
06f7a49a
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
4 deletions
+19
-4
conf/defaults.ini
+1
-0
conf/sample.ini
+1
-0
docs/sources/installation/configuration.md
+11
-3
pkg/api/login.go
+1
-0
pkg/setting/setting.go
+2
-0
public/app/core/config.ts
+1
-0
public/app/core/controllers/login_ctrl.ts
+1
-0
public/app/partials/login.html
+1
-1
No files found.
conf/defaults.ini
View file @
26779e07
...
@@ -231,6 +231,7 @@ verify_email_enabled = false
...
@@ -231,6 +231,7 @@ verify_email_enabled = false
# Background text for the user field on the login page
# Background text for the user field on the login page
login_hint
=
email or username
login_hint
=
email or username
password_hint
=
password
# Default UI theme ("dark" or "light")
# Default UI theme ("dark" or "light")
default_theme
=
dark
default_theme
=
dark
...
...
conf/sample.ini
View file @
26779e07
...
@@ -211,6 +211,7 @@ log_queries =
...
@@ -211,6 +211,7 @@ log_queries =
# Background text for the user field on the login page
# Background text for the user field on the login page
;login_hint = email or username
;login_hint = email or username
;password_hint = password
# Default UI theme ("dark" or "light")
# Default UI theme ("dark" or "light")
;default_theme = dark
;default_theme = dark
...
...
docs/sources/installation/configuration.md
View file @
26779e07
...
@@ -162,9 +162,9 @@ executed with working directory set to the installation path.
...
@@ -162,9 +162,9 @@ executed with working directory set to the installation path.
### enable_gzip
### enable_gzip
Set this option to
`true`
to enable HTTP compression, this can improve
Set this option to
`true`
to enable HTTP compression, this can improve
transfer speed and bandwidth utilization. It is recommended that most
transfer speed and bandwidth utilization. It is recommended that most
users set it to
`true`
. By default it is set to
`false`
for compatibility
users set it to
`true`
. By default it is set to
`false`
for compatibility
reasons.
reasons.
### cert_file
### cert_file
...
@@ -342,6 +342,14 @@ options are `Admin` and `Editor`. e.g. :
...
@@ -342,6 +342,14 @@ options are `Admin` and `Editor`. e.g. :
Viewers can edit/inspect dashboard settings in the browser. But not save the dashboard.
Viewers can edit/inspect dashboard settings in the browser. But not save the dashboard.
Defaults to
`false`
.
Defaults to
`false`
.
### login_hint
Text used as placeholder text on login page for login/username input.
### password_hint
Text used as placeholder text on login page for password input.
<hr>
<hr>
## [auth]
## [auth]
...
...
pkg/api/login.go
View file @
26779e07
...
@@ -36,6 +36,7 @@ func (hs *HTTPServer) LoginView(c *m.ReqContext) {
...
@@ -36,6 +36,7 @@ func (hs *HTTPServer) LoginView(c *m.ReqContext) {
viewData
.
Settings
[
"oauth"
]
=
enabledOAuths
viewData
.
Settings
[
"oauth"
]
=
enabledOAuths
viewData
.
Settings
[
"disableUserSignUp"
]
=
!
setting
.
AllowUserSignUp
viewData
.
Settings
[
"disableUserSignUp"
]
=
!
setting
.
AllowUserSignUp
viewData
.
Settings
[
"loginHint"
]
=
setting
.
LoginHint
viewData
.
Settings
[
"loginHint"
]
=
setting
.
LoginHint
viewData
.
Settings
[
"passwordHint"
]
=
setting
.
PasswordHint
viewData
.
Settings
[
"disableLoginForm"
]
=
setting
.
DisableLoginForm
viewData
.
Settings
[
"disableLoginForm"
]
=
setting
.
DisableLoginForm
if
loginError
,
ok
:=
tryGetEncryptedCookie
(
c
,
LoginErrorCookieName
);
ok
{
if
loginError
,
ok
:=
tryGetEncryptedCookie
(
c
,
LoginErrorCookieName
);
ok
{
...
...
pkg/setting/setting.go
View file @
26779e07
...
@@ -109,6 +109,7 @@ var (
...
@@ -109,6 +109,7 @@ var (
AutoAssignOrgRole
string
AutoAssignOrgRole
string
VerifyEmailEnabled
bool
VerifyEmailEnabled
bool
LoginHint
string
LoginHint
string
PasswordHint
string
DefaultTheme
string
DefaultTheme
string
DisableLoginForm
bool
DisableLoginForm
bool
DisableSignoutMenu
bool
DisableSignoutMenu
bool
...
@@ -656,6 +657,7 @@ func (cfg *Cfg) Load(args *CommandLineArgs) error {
...
@@ -656,6 +657,7 @@ func (cfg *Cfg) Load(args *CommandLineArgs) error {
AutoAssignOrgRole
=
users
.
Key
(
"auto_assign_org_role"
)
.
In
(
"Editor"
,
[]
string
{
"Editor"
,
"Admin"
,
"Viewer"
})
AutoAssignOrgRole
=
users
.
Key
(
"auto_assign_org_role"
)
.
In
(
"Editor"
,
[]
string
{
"Editor"
,
"Admin"
,
"Viewer"
})
VerifyEmailEnabled
=
users
.
Key
(
"verify_email_enabled"
)
.
MustBool
(
false
)
VerifyEmailEnabled
=
users
.
Key
(
"verify_email_enabled"
)
.
MustBool
(
false
)
LoginHint
=
users
.
Key
(
"login_hint"
)
.
String
()
LoginHint
=
users
.
Key
(
"login_hint"
)
.
String
()
PasswordHint
=
users
.
Key
(
"password_hint"
)
.
String
()
DefaultTheme
=
users
.
Key
(
"default_theme"
)
.
String
()
DefaultTheme
=
users
.
Key
(
"default_theme"
)
.
String
()
ExternalUserMngLinkUrl
=
users
.
Key
(
"external_manage_link_url"
)
.
String
()
ExternalUserMngLinkUrl
=
users
.
Key
(
"external_manage_link_url"
)
.
String
()
ExternalUserMngLinkName
=
users
.
Key
(
"external_manage_link_name"
)
.
String
()
ExternalUserMngLinkName
=
users
.
Key
(
"external_manage_link_name"
)
.
String
()
...
...
public/app/core/config.ts
View file @
26779e07
...
@@ -34,6 +34,7 @@ export class Settings {
...
@@ -34,6 +34,7 @@ export class Settings {
oauth
:
any
;
oauth
:
any
;
disableUserSignUp
:
boolean
;
disableUserSignUp
:
boolean
;
loginHint
:
any
;
loginHint
:
any
;
passwordHint
:
any
;
loginError
:
any
;
loginError
:
any
;
viewersCanEdit
:
boolean
;
viewersCanEdit
:
boolean
;
editorsCanOwn
:
boolean
;
editorsCanOwn
:
boolean
;
...
...
public/app/core/controllers/login_ctrl.ts
View file @
26779e07
...
@@ -25,6 +25,7 @@ export class LoginCtrl {
...
@@ -25,6 +25,7 @@ export class LoginCtrl {
$scope
.
disableLoginForm
=
config
.
disableLoginForm
;
$scope
.
disableLoginForm
=
config
.
disableLoginForm
;
$scope
.
disableUserSignUp
=
config
.
disableUserSignUp
;
$scope
.
disableUserSignUp
=
config
.
disableUserSignUp
;
$scope
.
loginHint
=
config
.
loginHint
;
$scope
.
loginHint
=
config
.
loginHint
;
$scope
.
passwordHint
=
config
.
passwordHint
;
$scope
.
loginMode
=
true
;
$scope
.
loginMode
=
true
;
$scope
.
submitBtnText
=
'Log in'
;
$scope
.
submitBtnText
=
'Log in'
;
...
...
public/app/partials/login.html
View file @
26779e07
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
</div>
</div>
<div
class=
"login-form"
>
<div
class=
"login-form"
>
<input
type=
"password"
name=
"password"
class=
"gf-form-input login-form-input"
required
ng-model=
"formModel.password"
id=
"inputPassword"
<input
type=
"password"
name=
"password"
class=
"gf-form-input login-form-input"
required
ng-model=
"formModel.password"
id=
"inputPassword"
placeholder=
"
password
"
>
placeholder=
"
{{passwordHint}}
"
>
</div>
</div>
<div
class=
"login-button-group"
>
<div
class=
"login-button-group"
>
<button
type=
"submit"
class=
"btn btn-large p-x-2"
ng-if=
"!loggingIn"
ng-click=
"submit();"
ng-class=
"{'btn-inverse': !loginForm.$valid, 'btn-primary': loginForm.$valid}"
>
<button
type=
"submit"
class=
"btn btn-large p-x-2"
ng-if=
"!loggingIn"
ng-click=
"submit();"
ng-class=
"{'btn-inverse': !loginForm.$valid, 'btn-primary': loginForm.$valid}"
>
...
...
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