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)