mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-28 07:50:32 +05:30
#57: send user language during registration
This commit is contained in:
parent
d8fc59ad4d
commit
a584ef0d95
@ -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({
|
||||||
|
Loading…
Reference in New Issue
Block a user