diff options
author | Sergey Linnik <sergey.linnik@onlyoffice.com> | 2017-04-04 14:58:21 +0300 |
---|---|---|
committer | Sergey Linnik <sergey.linnik@onlyoffice.com> | 2017-04-04 14:58:21 +0300 |
commit | 5b6d9c0d033eacbc53382fdaef2deb7f66938d6e (patch) | |
tree | e957952159e51c5fa5da326c816f4aa4d03ae6ba /controller | |
parent | ad6d2f62b3d59d38733219b8921acad659c6f9db (diff) |
Set secret key on admin page
Diffstat (limited to 'controller')
-rw-r--r-- | controller/settingscontroller.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/controller/settingscontroller.php b/controller/settingscontroller.php index 85d993a..3496ac8 100644 --- a/controller/settingscontroller.php +++ b/controller/settingscontroller.php @@ -87,7 +87,10 @@ class SettingsController extends Controller { * @return TemplateResponse */ public function index() { - $data = ["documentserver" => $this->config->GetDocumentServerUrl()]; + $data = [ + "documentserver" => $this->config->GetDocumentServerUrl(), + "secret" => $this->config->GetDocumentServerSecret() + ]; return new TemplateResponse($this->appName, "settings", $data, "blank"); } @@ -95,11 +98,13 @@ class SettingsController extends Controller { * Save the document server address * * @param string $documentserver - document service address + * @param string $secret - secret key for signature * * @return array */ - public function settings($documentserver) { + public function settings($documentserver, $secret) { $this->config->SetDocumentServerUrl($documentserver); + $this->config->SetDocumentServerSecret($secret); $error = $this->сheckDocServiceUrl(); |