Welcome to mirror list, hosted at ThFree Co, Russian Federation.

removeRootCertificate.php « ajax « settings - github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1651f48853a865bbdb02c8e3da3f52603026b1c9 (plain)
1
2
3
4
5
6
7
<?php
OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();

$name = (string)$_POST['cert'];
$certificateManager = \OC::$server->getCertificateManager();
$certificateManager->removeCertificate($name);