Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c77c55b2 authored by Israel Yago Pereira's avatar Israel Yago Pereira Committed by Arnau Vàzquez
Browse files

Using ENV variable to define user cloud quota (in MB)

parent 1baa422a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -15,6 +15,10 @@ class ECloudAccountCreator implements AccountCreator
    {
        $this->ecloudUrl = endsWith($ecloudUrl, "/") ? $ecloudUrl : $ecloudUrl . "/";
        $this->ecloudAccountsApiUrl = $this->ecloudUrl . 'apps/ecloud-accounts/api/';
        $quota = getenv('CLOUD_QUOTA_IN_MB');
        if ($quota !== false) {
            $this->quotaInMB = intval($quota);
        }
    }

    public function validateData(object $userData): ValidatedData