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

Merge login and signin #8389

Merged
merged 9 commits into from
Oct 23, 2024

Conversation

Abhi1992002
Copy link
Contributor

@Abhi1992002 Abhi1992002 commented Oct 22, 2024

Fixes #8328

Both the login and signup processes were the same, causing confusion. Now, there’s a single route for login, and if the user isn’t registered, they’ll be redirected to the signup page automatically.

Changes 🏗️

  • Created two separate files for login and signup.

  • If a user tries to log in and their email is not found in the system, they will
    be redirected to the signup page.

  • If the user is already registered, the usual login process will proceed.

Testing 🔍

• The login flow to ensure redirection to signup if email is not present.
• Confirmed successful login for registered users.

login-signin.flow.mp4

@Abhi1992002 Abhi1992002 requested a review from a team as a code owner October 22, 2024 05:43
@Abhi1992002 Abhi1992002 requested review from Swiftyos and Pwuts and removed request for a team October 22, 2024 05:43
@github-actions github-actions bot added platform/frontend AutoGPT Platform - Front end platform/backend AutoGPT Platform - Back end size/xl labels Oct 22, 2024
Copy link

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Error Handling
The error handling for login attempts might need refinement. Currently, it assumes a 400 status always means the user is not present, which may not always be the case.

Error Handling
The error handling for signup attempts could be improved. It's using string includes for error checking, which might be fragile if error messages change.

Commented Code
There's a large block of commented-out code for social login buttons. This should be either removed or implemented if it's intended for future use.

Copy link

netlify bot commented Oct 22, 2024

Deploy Preview for auto-gpt-docs ready!

Name Link
🔨 Latest commit 5fc833e
🔍 Latest deploy log https://app.netlify.com/sites/auto-gpt-docs/deploys/67173b68479e4c0008a388d0
😎 Deploy Preview https://deploy-preview-8389--auto-gpt-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@aarushik93 aarushik93 changed the base branch from master to dev October 22, 2024 10:48
Copy link
Member

@ntindle ntindle left a comment

Choose a reason for hiding this comment

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

good start, just some quick things. I'll let other team members review the frontend code otherwise

autogpt_platform/docker-compose.yml Outdated Show resolved Hide resolved
autogpt_platform/supabase Outdated Show resolved Hide resolved
autogpt_platform/frontend/yarn.lock Outdated Show resolved Hide resolved
@github-actions github-actions bot added size/l and removed size/xl labels Oct 23, 2024
@Abhi1992002
Copy link
Contributor Author

Done..!!

@aarushik93
Copy link
Contributor

@Abhi1992002 same thing here regarding supabase

@github-actions github-actions bot added size/xs and removed platform/frontend AutoGPT Platform - Front end size/l labels Oct 23, 2024
@github-actions github-actions bot added platform/frontend AutoGPT Platform - Front end size/l and removed size/xs labels Oct 23, 2024
@ntindle ntindle enabled auto-merge (squash) October 23, 2024 21:12
@ntindle ntindle merged commit 370e87d into Significant-Gravitas:dev Oct 23, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform/backend AutoGPT Platform - Back end platform/frontend AutoGPT Platform - Front end Review effort [1-5]: 3 size/l
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Merge Login & Signup step
4 participants