Skip to content

Commit 104987e

Browse files
committed
fix: fix bug with authProxy
1 parent 48f6957 commit 104987e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

model/common/vuefront.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ public function request($url, $data, $token = false) {
8787
$ch = curl_init();
8888
$headr = array();
8989

90-
$headr[] = 'Content-type: application/json';
90+
$headers[] = 'Content-type: application/json';
9191

9292
if ($token) {
9393
$headers[] = 'Authorization: Bearer '.$token;
9494
}
9595

9696
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
97-
curl_setopt($ch, CURLOPT_HTTPHEADER, $headr);
97+
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
9898
curl_setopt($ch, CURLOPT_POST, true);
9999
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
100100
curl_setopt($ch, CURLOPT_URL, $url);

resolver/common/home.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function authProxy($args)
3232
{
3333
$this->load->model('common/vuefront');
3434

35-
if (!$this->customer->isLogged()) {
35+
if (!is_user_logged_in() ) {
3636
return;
3737
}
3838
$app_info = $this->model_common_vuefront->getApp($args['app']);

0 commit comments

Comments
 (0)