summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-11-03 00:00:05 +0100
committerMorris Jobke <hey@morrisjobke.de>2020-11-03 10:06:33 +0100
commit1c496a5a356249dc5bd7c1bbb64ae262b2f8fdab (patch)
tree0d20e7cd3e0126ad4aca0f4084a3aa2d0f8dafdc /core/js
parent54b9f639a6cec14236f432c9907edb18d323d94d (diff)
downloadnextcloud-server-1c496a5a356249dc5bd7c1bbb64ae262b2f8fdab.tar.gz
nextcloud-server-1c496a5a356249dc5bd7c1bbb64ae262b2f8fdab.zip
Add a background job that checks for potential user imported SSL certificates and shows a warning in the admin settings
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/js')
-rw-r--r--core/js/setupchecks.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js
index cd933d5f603..204401064f9 100644
--- a/core/js/setupchecks.js
+++ b/core/js/setupchecks.js
@@ -488,6 +488,7 @@
OC.SetupChecks.addGenericSetupCheck(data, 'OCA\\Settings\\SetupChecks\\PhpDefaultCharset', messages)
OC.SetupChecks.addGenericSetupCheck(data, 'OCA\\Settings\\SetupChecks\\PhpOutputBuffering', messages)
OC.SetupChecks.addGenericSetupCheck(data, 'OCA\\Settings\\SetupChecks\\LegacySSEKeyFormat', messages)
+ OC.SetupChecks.addGenericSetupCheck(data, 'OCA\\Settings\\SetupChecks\\CheckUserCertificates', messages)
} else {
messages.push({
@@ -520,6 +521,15 @@
if (setupCheck.linkToDocumentation) {
message += ' ' + t('core', 'For more details see the <a target="_blank" rel="noreferrer noopener" href="{docLink}">documentation</a>.', {docLink: setupCheck.linkToDocumentation});
}
+ if (setupCheck.elements) {
+ message += '<br><ul>'
+ setupCheck.elements.forEach(function(element){
+ message += '<li>';
+ message += element
+ message += '</li>';
+ });
+ message += '</ul>'
+ }
if (!setupCheck.pass) {
messages.push({