mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-27 23:40:28 +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 = '',
|
||||
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({
|
||||
|
Loading…
Reference in New Issue
Block a user