How to redirect existing users from signup form to login form instead of showing 'email already taken' error? Answered
Hey there!
How can I redirect a member from the signup form to the login form? Currently when someone who already has an account fills the form in the landing page it says "email has already been taken", so I want to redirect them to the login form when that happens. How can I do that?
Thanks!
Comments
5 comments
Hey Rafael! This would take some custom code. To do this you would need to use the DOM package to login members and based on the response do the redirect.
Is there a way to not have a page redirect when a user fills out a member form, and for the form to just show the form success message?
you might need to submit the form to a webhook to update member through javascript then and handle the response you desire.
Or catch some memberstack JS events for that.
Hi, Is there any way to remove “Default settings”?
I’m trying to fix the issue when everytime somebody new or existing user signs up, they are both redirected again to the onboarding form, which doesn’t make any sense for already existing users
What are your redirects settings for your applicant and company plans?
The default settings is just a rule for when people signup/or login without a plan. And each plan redirect rules overwrite the default one. So no, it cannot be removed.
You may want to check if you have a redirect in your form that might be overwriting the plan redirects. Here are the docs for redirection rules and overwriting
https://docs.memberstack.com/hc/en-us/articles/7384608370715-Default-Redirects-Plan-Redirects-Signup-Login-Logout
Please sign in to leave a comment.