Browse Source

Projucer: Updated licence/account URLs to juce.com

tags/2021-05-28
ed 5 years ago
parent
commit
5d9f9879c4
2 changed files with 5 additions and 6 deletions
  1. +4
    -5
      extras/Projucer/Source/Application/UserAccount/jucer_LicenseQueryThread.h
  2. +1
    -1
      extras/Projucer/Source/Application/UserAccount/jucer_LoginFormComponent.h

+ 4
- 5
extras/Projucer/Source/Application/UserAccount/jucer_LicenseQueryThread.h 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());


+ 1
- 1
extras/Projucer/Source/Application/UserAccount/jucer_LoginFormComponent.h 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


Loading…
Cancel
Save