diff --git a/app/main.py b/app/main.py index 6282bbe467eb685b914e736c45226cd1a134a45b..c4ec17639e616656a7a535335d7cb16198222c83 100644 --- a/app/main.py +++ b/app/main.py @@ -71,7 +71,7 @@ class MyHandler(BaseHTTPRequestHandler): # Edit nextcloud account, set quota and email auth = HTTPBasicAuth(os.environ['NEXTCLOUD_ADMIN_USER'], os.environ['NEXTCLOUD_ADMIN_PASSWORD']) - url = f'https://drive.{os.environ["DOMAIN"]}/ocs/v1.php/cloud/users/' + target_email + url = f'https://{os.environ["DOMAIN"]}/ocs/v1.php/cloud/users/' + target_email headers = {'OCS-APIRequest': 'true'} r1 = requests.put(url, data={'key': 'email', 'value': fallback_email}, headers=headers, auth=auth) r2 = requests.put(url, data={'key': 'quota', 'value': nextcloud_quota}, headers=headers, auth=auth)