Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect Users to Homepage After Successful Signup (#39) #46

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Varundeep111
Copy link
Contributor

This Pull Request enhances the signup flow by redirecting users directly to the homepage upon successful account creation. This improvement eliminates the need for users to manually navigate to the sign-in page and re-enter credentials, resulting in a smoother and more user-friendly experience.

Key Changes:
Automatic Login Post-Signup:

Upon successful signup, the system automatically authenticates the user and navigates them to the homepage.

Loading Feedback:
A loading indicator is displayed during the signup and login process, providing visual feedback to users.

Error Handling:
Added robust error-handling mechanisms to manage potential issues during the automatic login process.
Fallback navigation or messaging is implemented in case of login failure.

Code Updates:
Updated navigation logic to streamline the transition from signup to the homepage.
Adjusted API integration to handle signup and automatic login in a single flow.

Branch Information:
Branch Name: feature/39-signup-navigation-homepage
Implements feature #39 as described in the issue.

Related Issues:
Closes #39

Additional Notes:
Feedback on the automatic login implementation and error-handling logic is welcome.
Suggestions for further optimization of the signup flow are appreciated.

@angrezichatterbox
Copy link
Member

Thanks for the PR @Varundeep111. We would get to review your PR soon.

@angrezichatterbox
Copy link
Member

@ItsAbhinavM Please review it

} else {
// If login fails after signup
isLoading.value = false;
_showErrorDialog('Signup successful, but automatic login failed');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change the "automatic login" part to something else, feels a bit weird. You don't have to tell the user that an error occurred. Would be fine if you just put
"Signup successful".

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this file is necessary, could you delete it.

@angrezichatterbox
Copy link
Member

@Varundeep111 Could u make the suggested changes and then we would be good to merge it in ?

@ItsAbhinavM
Copy link

@angrezichatterbox, after @Varundeep111 finishes the update, I think we are good to merge the PR. Thank you @Varundeep111 for your contribution; I hope we can see more contributions from you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Successful signup should navigate to the HomePage
3 participants