mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
#57: send user language during registration
This commit is contained in:
@@ -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({
|
||||
|
Reference in New Issue
Block a user