Client - add language in user registration payload
This commit is contained in:
parent
5549eff08b
commit
0e10abb276
@ -191,6 +191,9 @@
|
|||||||
const appConfig: ComputedRef<TAppConfig> = computed(
|
const appConfig: ComputedRef<TAppConfig> = computed(
|
||||||
() => store.getters[ROOT_STORE.GETTERS.APP_CONFIG]
|
() => store.getters[ROOT_STORE.GETTERS.APP_CONFIG]
|
||||||
)
|
)
|
||||||
|
const language: ComputedRef<string> = computed(
|
||||||
|
() => store.getters[ROOT_STORE.GETTERS.LANGUAGE]
|
||||||
|
)
|
||||||
const registration_disabled: ComputedRef<boolean> = computed(
|
const registration_disabled: ComputedRef<boolean> = computed(
|
||||||
() =>
|
() =>
|
||||||
props.action === 'register' && !appConfig.value.is_registration_enabled
|
props.action === 'register' && !appConfig.value.is_registration_enabled
|
||||||
@ -245,6 +248,7 @@
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
default:
|
default:
|
||||||
|
formData['language'] = language.value
|
||||||
store.dispatch(AUTH_USER_STORE.ACTIONS.LOGIN_OR_REGISTER, {
|
store.dispatch(AUTH_USER_STORE.ACTIONS.LOGIN_OR_REGISTER, {
|
||||||
actionType,
|
actionType,
|
||||||
formData,
|
formData,
|
||||||
|
@ -93,6 +93,7 @@ export interface ILoginRegisterFormData {
|
|||||||
username: string
|
username: string
|
||||||
email: string
|
email: string
|
||||||
password: string
|
password: string
|
||||||
|
language?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ILoginOrRegisterData {
|
export interface ILoginOrRegisterData {
|
||||||
|
Loading…
Reference in New Issue
Block a user