minor bug fixes.
This commit is contained in:
+2
-2
@@ -17,7 +17,7 @@ func generateRandomString(length int) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
err := godotenv.Load("../.env")
|
err := godotenv.Load("../music/.env")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Error loading .env file: %s", err)
|
log.Fatalf("Error loading .env file: %s", err)
|
||||||
}
|
}
|
||||||
@@ -38,5 +38,5 @@ func main() {
|
|||||||
http.Redirect(w, r, redirectURL, http.StatusFound)
|
http.Redirect(w, r, redirectURL, http.StatusFound)
|
||||||
})
|
})
|
||||||
|
|
||||||
http.ListenAndServe(":8080", nil)
|
http.ListenAndServe(":9753", nil)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,9 +7,7 @@ $html = '';
|
|||||||
|
|
||||||
$client_id = $_ENV['SPOTIFY_CLIENT_ID'];
|
$client_id = $_ENV['SPOTIFY_CLIENT_ID'];
|
||||||
$client_secret = $_ENV['SPOTIFY_CLIENT_SECRET'];
|
$client_secret = $_ENV['SPOTIFY_CLIENT_SECRET'];
|
||||||
// $auth_code = $_ENV['SPOTIFY_AUTH_CODE'];
|
|
||||||
$auth_code = $_GET['code'];
|
$auth_code = $_GET['code'];
|
||||||
// $auth_state = $_GET['state'];
|
|
||||||
|
|
||||||
$client_credentials = get_client_credentials($client_id, $client_secret);
|
$client_credentials = get_client_credentials($client_id, $client_secret);
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
session_start();
|
session_start();
|
||||||
include ('login.php');
|
include ('login.php');
|
||||||
exec('php explore.php &');
|
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|||||||
Reference in New Issue
Block a user