diff --git a/auth.php b/auth.php
index 61585234..d93c5ecc 100755
--- a/auth.php
+++ b/auth.php
@@ -3,18 +3,18 @@
// allow cross-domain requests
header("Access-Control-Allow-Origin: *");
-$url = 'http://jamesbarnsley.co.nz/auth.php';
+$url = 'https://jamesbarnsley.co.nz/auth.php';
-if( isset($_GET['app']) )
+if (isset($_GET['app'])){
setcookie( 'mopidy_iris', $_GET['app'], time()+3600 );
-
+}
/* ================================================================================= INIT ================ */
/* ======================================================================================================= */
// we've just completed authorization, now create credentials (access_token, etc)
-if( isset($_GET['code']) ){
+if (isset($_GET['code'])){
// go get our credentials
$response = getToken( $_GET['code'], $url );
@@ -30,7 +30,7 @@ if( isset($_GET['code']) ){
die();
}
- // send our data back to Spotmop
+ // send our data back to Iris
?>
+
+