From 7166bee29c61327e6847c0e027884f03e5329b14 Mon Sep 17 00:00:00 2001 From: Matheus Garcia Date: Tue, 26 Feb 2019 12:47:27 -0300 Subject: [PATCH] =?UTF-8?q?Troca=20de=20apikey=20para=20token=20gen=C3=A9r?= =?UTF-8?q?ico,=20em=20vez=20do=20usu=C3=A1rio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- classes/util.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/util.php b/classes/util.php index d5aa5fe..c29a87c 100644 --- a/classes/util.php +++ b/classes/util.php @@ -91,7 +91,7 @@ function atualizaCursoEVL($curso, $visivel = null) { // Monta o JSON que serĂ¡ enviado ao Web Service $obj->school = $CFG->emSigla; $obj->course = $camposCurso; - $obj->key = $USER->idnumber; + $obj->key = $CFG->emApplicationToken; $json = json_encode($obj); $response = \Httpful\Request::post($uri) @@ -242,7 +242,7 @@ function atualizaCertificadoEVL($certificado) { $mainArray = array( 'school' => $CFG->emSigla, 'certificates' => $certArray, - 'key' => $USER->idnumber + 'key' =>$ $CFG->emApplicationToken ); $json = json_encode($mainArray); @@ -294,7 +294,7 @@ function atualizaDadosEscola($dadosEscola) { 'url' => $dadosEscola->url_escola, 'logo' => $dadosEscola->url_logo_escola, 'initials' => $dadosEscola->sigla_escola, - 'key' => $USER->idnumber + 'key' => $CFG->emApplicationToken ); $json = json_encode($schoolArray);