Verified Commit 42dccdf7 authored by Mehdi Baaboura's avatar Mehdi Baaboura
Browse files

Use old.gigadrivegroup.com domain

parent 0107564d
<?php
/*
* Copyright (C) 2018-2020 Gigadrive - All rights reserved.
* Copyright (C) 2018-2021 Gigadrive - All rights reserved.
* https://gigadrivegroup.com
* https://qpostapp.com
*
......@@ -240,6 +240,6 @@ class LoginController extends qpostController {
* @Route("/login/gigadrive")
*/
public function gigadrive() {
return $this->redirect("https://gigadrivegroup.com/authorize?app=" . $_ENV["GIGADRIVE_APP_ID"] . "&scopes=user:info,user:email");
return $this->redirect("https://old.gigadrivegroup.com/authorize?app=" . $_ENV["GIGADRIVE_APP_ID"] . "&scopes=user:info,user:email");
}
}
<?php
/*
* Copyright (C) 2018-2020 Gigadrive - All rights reserved.
* Copyright (C) 2018-2021 Gigadrive - All rights reserved.
* https://gigadrivegroup.com
* https://qpostapp.com
*
......@@ -57,7 +57,7 @@ class UserGigadriveDataRepository extends ServiceEntityRepository {
$client = HttpClientFactory::create();
$secret = $_ENV["GIGADRIVE_APP_SECRET"];
$response = $client->get("https://gigadrivegroup.com/api/v3/token", [
$response = $client->get("https://old.gigadrivegroup.com/api/v3/token", [
"query" => [
"secret" => $secret,
"code" => $code
......@@ -99,7 +99,7 @@ class UserGigadriveDataRepository extends ServiceEntityRepository {
$client = HttpClientFactory::create();
$secret = $_ENV["GIGADRIVE_APP_SECRET"];
$response = $client->get("https://gigadrivegroup.com/api/v3/user", [
$response = $client->get("https://old.gigadrivegroup.com/api/v3/user", [
"query" => [
"secret" => $secret,
"token" => $token
......
<?php
/**
* Copyright (C) 2018-2020 Gigadrive - All rights reserved.
/*
* Copyright (C) 2018-2021 Gigadrive - All rights reserved.
* https://gigadrivegroup.com
* https://qpostapp.com
*
......@@ -80,7 +80,7 @@ class GigadriveService {
$apiKey = $_ENV["GIGADRIVE_APP_SECRET"];
if ($base64) {
$response = $this->httpClient->post("https://gigadrivegroup.com/api/v3/file", [
$response = $this->httpClient->post("https://old.gigadrivegroup.com/api/v3/file", [
"form_params" => [
"secret" => $apiKey,
"data" => $base64
......
......@@ -28,7 +28,7 @@
<tr>
<td style="width: 50%">&nbsp;</td>
<td style="width: 50%"><b>To further manage your account, visit the <a
href="https://gigadrivegroup.com/account" target="_blank">Gigadrive website</a>.</b>
href="https://old.gigadrivegroup.com/account" target="_blank">Gigadrive website</a>.</b>
</td>
</tr>
{% endif %}
......
......@@ -40,8 +40,9 @@
{% if currentUser.gigadriveLinked %}
<div class="w-100">
This will <u>not</u> affect your username on <a href="https://gigadrivegroup.com/account"
target="_blank" class="ml-1">gigadrivegroup.com</a>.
This will <u>not</u> affect your username on <a
href="https://old.gigadrivegroup.com/account"
target="_blank" class="ml-1">gigadrivegroup.com</a>.
</div>
{% endif %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment