#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 = '', rePassword = '',
rulesAgreement = false rulesAgreement = false
}) { }) {
return wrapInLoader((dispatch) => return wrapInLoader((dispatch, getState) =>
request.post( request.post(
'/api/signup', '/api/signup',
{email, username, password, rePassword, rulesAgreement} {email, username, password, rePassword, rulesAgreement, lang: getState().user.lang}
) )
.then(() => { .then(() => {
dispatch(updateUser({ dispatch(updateUser({