Skip to content

Commit

Permalink
Merge pull request #353 from EscolaLMS/feature/returnurl-from-env
Browse files Browse the repository at this point in the history
return url from env
  • Loading branch information
victazzz authored Apr 22, 2024
2 parents 8928ca7 + 7de4f30 commit 5247517
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/organisms/RegisterForm/RegisterForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export const RegisterForm: React.FC<RegisterFormProps> = ({
onSubmit={(values, { setSubmitting, resetForm, setErrors }) => {
register({
...values,
return_url: `${window.location.origin}${return_url}`,
return_url: `${return_url}`,
})
.then((res: DefaultResponse<RegisterResponse>) => {
resetForm();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const ResetPasswordForm: React.FC<Props> = ({
) => {
forgot({
email: values.email,
return_url: `${window.location.origin}/${return_url}`,
return_url: `${return_url}`,
})
.then(() => onFirstStepSuccess && onFirstStepSuccess())
.catch((err: ResponseError<DefaultResponseError>) => {
Expand Down

0 comments on commit 5247517

Please sign in to comment.