From b14ed2fb5a0bfcf71406416c4a94abd4dd5e8a50 Mon Sep 17 00:00:00 2001 From: Christian Cueni Date: Mon, 27 Apr 2020 08:14:39 +0200 Subject: [PATCH] Change url, add group_id --- client/src/hep-client/index.js | 4 ++-- server/registration/view.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/hep-client/index.js b/client/src/hep-client/index.js index b1f77a09..956e8d3e 100644 --- a/client/src/hep-client/index.js +++ b/client/src/hep-client/index.js @@ -1,6 +1,6 @@ import * as axios from 'axios' -const hepBaseUrl = 'https://www.hep-verlag.ch'; +const hepBaseUrl = 'https://stage.hep-verlag.ch'; export function register(registrationData) { return axios.post('/api/proxy/registration/', registrationData); @@ -11,7 +11,7 @@ export function login(username, password) { } export function emailExists(email) { - return axios.post(`https://www.hep-verlag.ch/rest/deutsch/V1/customers/isEmailAvailable`, { + return axios.post(`${hepBaseUrl}/rest/deutsch/V1/customers/isEmailAvailable`, { customerEmail: email, websiteId: 1 }); diff --git a/server/registration/view.py b/server/registration/view.py index 433b7e24..d7294016 100644 --- a/server/registration/view.py +++ b/server/registration/view.py @@ -20,6 +20,7 @@ class RegistrationProxyView(View): def post(self, request, *args, **kwargs): hep_client = HepClient() data = json.loads(request.body) + data['group_id'] = 5 try: hep_data = hep_client.customer_create(data)