1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Projucer: Updated licence/account URLs to juce.com

This commit is contained in:
ed 2020-06-22 16:18:33 +01:00
parent 4c56ae4d0d
commit 5d9f9879c4
2 changed files with 5 additions and 6 deletions

View file

@ -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<AccountEnquiryBase> 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());

View file

@ -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