From 55b4258c416fa109a7674f0d0bcfee1a14d6bdd7 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Mon, 3 Feb 2025 11:01:36 -0700 Subject: [PATCH] bug fix - redirecting to localhost instead of login.joshashton.dev --- api/main.go | 1 - music/explore.php | 1 - music/index.php | 1 - 3 files changed, 3 deletions(-) diff --git a/api/main.go b/api/main.go index 9566b95..07d3b95 100644 --- a/api/main.go +++ b/api/main.go @@ -26,7 +26,6 @@ func main() { client_id := os.Getenv("SPOTIFY_CLIENT_ID") redirect_uri := "https://cs2440.joshashton.dev/music" - //redirect_uri := "http://localhost/music" scope := "user-top-read" redirectURL := "https://accounts.spotify.com/authorize?" + strings.Join([]string{ diff --git a/music/explore.php b/music/explore.php index 341e02a..00e8f31 100644 --- a/music/explore.php +++ b/music/explore.php @@ -79,7 +79,6 @@ function get_access_token($auth_code, $client_id, $client_secret) $data = array( 'grant_type' => 'authorization_code', 'code' => $auth_code, - // 'redirect_uri' => 'http://localhost/music' 'redirect_uri' => 'https://cs2440.joshashton.dev/music' ); diff --git a/music/index.php b/music/index.php index 81f30b0..9cb1b23 100644 --- a/music/index.php +++ b/music/index.php @@ -3,7 +3,6 @@ session_start(); if (!isset($_GET['code'])) { header('Location: https://login.joshashton.dev/'); - // header('Location: http://localhost:9753/'); exit; } ?>