#57: send user language during registration

This commit is contained in:
SleepWalker 2016-05-14 16:00:14 +03:00
parent d8fc59ad4d
commit a584ef0d95

View File

@ -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({