feat(in-738): user password fix

pull/283/head
Margarita 2 years ago
parent 0b2c38871a
commit d4c4bd6e81
  1. 4
      src/features/UserAccount/components/PersonalInfoForm/hooks/useUserInfo.tsx

@ -5,7 +5,7 @@ import find from 'lodash/find'
import map from 'lodash/map'
import { formIds } from 'config/form'
import { AUTH_SERVICE } from 'config/routes'
import { AUTH_SERVICE_OLD } from 'config/routes'
import { useForm } from 'features/FormStore'
import { useLexicsStore } from 'features/LexicsStore'
@ -112,7 +112,7 @@ export const useUserInfo = ({ loader, onSubmit }: Props) => {
}
const resetPassword = useCallback(() => {
window.location.href = `${AUTH_SERVICE}/change_password?client_id=${client.auth.clientId}&token=${token}`
window.location.href = `${AUTH_SERVICE_OLD}/change_password?client_id=${client.auth.clientId}&token=${token}`
}, [token])
return {

Loading…
Cancel
Save