diff --git a/extras/Projucer/Source/Application/UserAccount/jucer_LicenseQueryThread.h b/extras/Projucer/Source/Application/UserAccount/jucer_LicenseQueryThread.h index de3e0928ba..de5f49de65 100644 --- a/extras/Projucer/Source/Application/UserAccount/jucer_LicenseQueryThread.h +++ b/extras/Projucer/Source/Application/UserAccount/jucer_LicenseQueryThread.h @@ -82,7 +82,7 @@ private: } bool isPOSTLikeRequest() const override { return true; } - String getEndpointURLSuffix() const override { return "/authenticate"; } + String getEndpointURLSuffix() const override { return "/authenticate/projucer"; } int getSuccessCode() const override { return 200; } StringPairArray getParameterNamesAndValues() const override @@ -146,7 +146,7 @@ private: } bool isPOSTLikeRequest() const override { return false; } - String getEndpointURLSuffix() const override { return "/user/licences"; } + String getEndpointURLSuffix() const override { return "/user/licences/projucer"; } int getSuccessCode() const override { return 200; } StringPairArray getParameterNamesAndValues() const override @@ -178,10 +178,9 @@ private: for (auto& license : *licensesJson) { - auto name = license.getProperty ("product_name", {}).toString(); auto status = license.getProperty ("status", {}).toString(); - if (name == "Projucer" && status == "active") + if (status == "active") licenseTypes.add (license.getProperty ("licence_type", {}).toString()); } @@ -220,7 +219,7 @@ private: String runJob (std::unique_ptr accountEnquiryJob, LicenseState& state) { - const String endpointURL = "https://api.roli.com/api/v1"; + const String endpointURL = "https://api.juce.com/api/v1"; auto url = URL (endpointURL + accountEnquiryJob->getEndpointURLSuffix()); diff --git a/extras/Projucer/Source/Application/UserAccount/jucer_LoginFormComponent.h b/extras/Projucer/Source/Application/UserAccount/jucer_LoginFormComponent.h index ae3c2c94c2..c875e680e3 100644 --- a/extras/Projucer/Source/Application/UserAccount/jucer_LoginFormComponent.h +++ b/extras/Projucer/Source/Application/UserAccount/jucer_LoginFormComponent.h @@ -113,7 +113,7 @@ public: void mouseUp (const MouseEvent& event) override { if (event.eventComponent == &createAccountLabel) - URL ("https://auth.roli.com/register").launchInDefaultBrowser(); + URL ("https://juce.com/verification/register").launchInDefaultBrowser(); } void lookAndFeelChanged() override