mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-26 11:43:59 -05:00
dbce0181a4
* Added config option to enable/disable the email signup * Added register API call * Added register button and error handling * Show register button only if enabled in config * Renamed login handler, added dir-attribute, removed obsolete css class * Added separate registration page, changed email-login to internal-login As an username is sufficient for registration, this commit changes the email-login into an username-based login. This login method is now called "internal" in the code. This commit also introduces a new registration page instead of using the same form as for login. * Added information texts below form fields * Added error differentiation * Added CHANGELOG entry * Replace "magic string" with Enum representation * Removed password-field to DOM rewrite With the value attribute set, the password would be written to the DOM while typing. That's bad practise as attackers could read that password (e.g. with dirty CSS-hacks). * Fixed backendConfig to config renaming * Fixed links on register page being external links * Refactored error handling to use string-enum that corresponds with i18n keys * Fix chrome warnings regarding autocomplete and duplicated id * Refactor login action buttons to use callbacks and handle promises directly * Remove unnecessary async function * Added promise chaining
42 lines
1 KiB
Text
42 lines
1 KiB
Text
{
|
|
"allowAnonymous": true,
|
|
"authProviders": {
|
|
"facebook": true,
|
|
"github": true,
|
|
"twitter": true,
|
|
"gitlab": true,
|
|
"dropbox": true,
|
|
"ldap": true,
|
|
"google": true,
|
|
"saml": true,
|
|
"oauth2": true,
|
|
"internal": true,
|
|
"openid": true
|
|
},
|
|
"allowRegister": true,
|
|
"branding": {
|
|
"name": "ACME Corp",
|
|
"logo": "http://localhost:3001/acme.png"
|
|
},
|
|
"banner": {
|
|
"text": "This is the test banner text",
|
|
"timestamp": "2020-05-22T20:46:08.962Z"
|
|
},
|
|
"customAuthNames": {
|
|
"ldap": "FooBar",
|
|
"oauth2": "Olaf2",
|
|
"saml": "aufSAMLn.de"
|
|
},
|
|
"useImageProxy": false,
|
|
"plantumlServer": "http://www.plantuml.com/plantuml",
|
|
"specialLinks": {
|
|
"privacy": "https://example.com/privacy",
|
|
"termsOfUse": "https://example.com/termsOfUse",
|
|
"imprint": "https://example.com/imprint"
|
|
},
|
|
"version": {
|
|
"version": "mock",
|
|
"sourceCodeUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
|
|
"issueTrackerUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
|
|
}
|
|
}
|