diff --git a/src/components/auth/actions.js b/src/components/auth/actions.js index ae800d2..a247ae5 100644 --- a/src/components/auth/actions.js +++ b/src/components/auth/actions.js @@ -69,10 +69,10 @@ export function register({ rePassword = '', rulesAgreement = false }) { - return wrapInLoader((dispatch) => + return wrapInLoader((dispatch, getState) => request.post( '/api/signup', - {email, username, password, rePassword, rulesAgreement} + {email, username, password, rePassword, rulesAgreement, lang: getState().user.lang} ) .then(() => { dispatch(updateUser({