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

Fix New User Google Login/Register Issue #234

Merged
merged 7 commits into from
Nov 20, 2024
Merged

Conversation

Shengle-Dai
Copy link
Collaborator

@Shengle-Dai Shengle-Dai commented Nov 16, 2024

Summary

This pull request fixes the problem when users cannot log in/register on the simulator if their information is not in the database.

  • Revised the logic of printing "unable to register user"
  • Added a logic of checking the user's existence in the database before directly logging in as a user

Dependency fixes are the same as #229

Test Plan

  • Tested on ios simulator

Notes

If we call Geolocator.getCurrentPosition() twice on the simulator, it will stuck forever. (in geopoint.dart)

@dti-github-bot
Copy link
Member

dti-github-bot commented Nov 16, 2024

[diff-counting] Significant lines: 124.

Copy link
Contributor

@BrianLa0616 BrianLa0616 left a comment

Choose a reason for hiding this comment

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

Your changes allow for relogin. However, there's now an issue where an existing user is redirected to the registration change every time.

Specifically, this is because of the error that is thrown "flutter: Error occurred while checking user: FormatException: Unexpected character (at character 1)"

Copy link
Contributor

@BrianLa0616 BrianLa0616 left a comment

Choose a reason for hiding this comment

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

Addressed comments. Good work!

@Shengle-Dai Shengle-Dai merged commit c00f2f5 into master Nov 20, 2024
12 checks passed
@Shengle-Dai Shengle-Dai deleted the sd924/google-login branch November 20, 2024 23:03
shah-esha pushed a commit that referenced this pull request Dec 4, 2024
* Fixed local machine dependency issues

* Fixed the issue of registering new users on simulator

* Added documentation for login related pages

* Fixed the wrong uri call for checking user existence

* Removeed loggings that are used for debugging

* Made check user existence logic concise
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.

3 participants