Browse Source

Adjust database, fix bug in munzee.php

master
Skylar Ittner 3 months ago
parent
commit
696abb6641
2 changed files with 2 additions and 2 deletions
  1. BIN
      database.mwb
  2. 2
    2
      munzee.php

BIN
database.mwb View File


+ 2
- 2
munzee.php View File

@@ -17,7 +17,7 @@ if (empty($VARS['code'])) {
if ($user->checkPassword($VARS["password"], true)) {
$_SESSION["userid"] = User::byUsername($VARS["username"])->getUID();
$_SESSION["munzeeauthed"] = true;
header("Location: https://api.munzee.com/oauth?response_type=code&client_id=" . $SETTINGS["munzee"]["id"] . "&redirect_uri=" + $SETTINGS["munzee"]["redirecturl"] + "&scope=read capture_light");
header("Location: https://api.munzee.com/oauth?response_type=code&client_id=" . $SETTINGS["munzee"]["id"] . "&redirect_uri=" . urlencode($SETTINGS["munzee"]["redirecturl"]) . "&scope=read capture_light");
die("OK");
}
die("Login incorrect.");
@@ -74,4 +74,4 @@ if (empty($VARS['code'])) {
} else {
die($Strings->get("Munzee is having problems right now. Try again later.", false));
}
}
}

Loading…
Cancel
Save