-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configuration option for a login hint text
- Loading branch information
1 parent
e9c1ccc
commit 92500c8
Showing
4 changed files
with
75 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://raw.githubusercontent.com/qwc-services/qwc-ldap-auth/master/schemas/qwc-ldap-auth.json", | ||
"title": "QWC LDAP authentication service", | ||
"type": "object", | ||
"properties": { | ||
"$schema": { | ||
"title": "JSON Schema", | ||
"description": "Reference to JSON schema of this config", | ||
"type": "string", | ||
"format": "uri", | ||
"default": "https://raw.githubusercontent.com/qwc-services/qwc-ldap-auth/master/schemas/qwc-ldap-auth.json" | ||
}, | ||
"service": { | ||
"title": "Service name", | ||
"type": "string", | ||
"const": "ldap-auth" | ||
}, | ||
"config": { | ||
"title": "Config options", | ||
"type": "object", | ||
"properties": { | ||
"login_hint":{ | ||
"description": "Login hint text, shown above login form fields. Either a string, or dictionary `{\"<lang>\": \"<text>\"}`. When providing a dictionary, the entry matching the current locale will be searched, with fallback to `en` if no entry for the current locale exists, and fallback to an empty string if no `en` entry exists.", | ||
"type": { | ||
"oneOf":[ | ||
{"type": "string"}, | ||
{ | ||
"type": "object", | ||
"patternProperties": { | ||
"^[a-z]{2}$": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"required": [ | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"service", | ||
"config" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,3 +76,8 @@ input:focus { | |
display: block; | ||
margin-top: 12px; | ||
} | ||
|
||
.login-hint { | ||
text-align: left; | ||
font-size: 14px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters