Skip to content

Commit

Permalink
Update to curio.codes
Browse files Browse the repository at this point in the history
  • Loading branch information
bartjroos committed Oct 24, 2020
1 parent 82a03a7 commit afd28f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AmoclientController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function redirect()
dd('Please set AMO_CLIENT_ID and AMO_CLIENT_SECRET in .env file');
}

return redirect('https://login.amo.rocks/oauth/authorize?client_id=' . $client_id . '&redirect_id=' . url('amoclient/callback') . '&response_type=code');
return redirect('https://login.curio.codes/oauth/authorize?client_id=' . $client_id . '&redirect_id=' . url('amoclient/callback') . '&response_type=code');
}

public function callback(Request $request)
Expand All @@ -32,7 +32,7 @@ public function callback(Request $request)
try {

//Exchange authcode for tokens
$response = $http->post('https://login.amo.rocks/oauth/token', [
$response = $http->post('https://login.curio.codes/oauth/token', [
'form_params' => [
'client_id' => config('amoclient.client_id'),
'client_secret' => config('amoclient.client_secret'),
Expand Down

0 comments on commit afd28f8

Please sign in to comment.