FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
105 stars 18 forks source link

Firebase user creation field values interfere between two sign up form pages #2606

Open AbdelrahmanSalehRewaished opened 3 months ago

AbdelrahmanSalehRewaished commented 3 months ago

Has your issue been reported?

Current Behavior

I have two sign-up pages having a form element in which both have an email, password, and name text fields when setting the action for each form button in the two pages trying to create a user document from the Firebase authentication and Create account and trying to set the display_name field (or any other user field), the value of the name field overrides the one in the other page's action,

1) First Sign up page Capture

2) Second Sign page Capture

causing the following error:

Capture

Expected Behavior

The normal expected behavior is to have both sign-up forms operating independently, setting a user field here does not affect the other one.

I doubted that it was because of duplicating the page initially or because of a button copy but I created the two pages from scratch and without any copying or pasting but still got the same weird and unexpected problem.

I am really disappointed with this!

Steps to Reproduce

  1. Create a blank project
  2. Set up Firebase and enable authentication (Email provider) and download configurations file (the normal firebase authentication setting).
  3. Create two different signup pages having the following text fields with for example an email, name, password, and confirm password.
  4. try creating an on tap action on each page "Sign Up" Button.
  5. Choose Backend -> Firebase Authentication -> Create Account
  6. Auth Provider: Email, Email: emailField, Password: passwordField, Confirm Password: confirmPasswordField
  7. Set "Create User Document"
  8. Try Setting fields "email" & "display_name" for the Firebase user collection
  9. Whenever you set a value in the email here it gets reflected on the other page create user action causing the referenced error.

Reproducible from Blank

Bug Report Code (Required)

IT4KkMrqw5Ngobxc+KrUbO9VlSQsJj8kRYI0lu1TQgAaJbatG7YAW/SkQE9WZ7yhdH03MFqZ+XMdw/CMkvbIN8A6HEmVR4hzyKVqZQLwZGSgR7rUPru8WmtSEtpKC2aY1MOKkSZSIs12dCUB2E2DfPK9fHTXQr7JIUg3JOaiOt/4s3/uQ0SLb3kNh1JWeC/v

Context

Multi User roles Sign up and authentication (not something fancy)

Visual documentation

Capture

Additional Info

No response

Environment

- FlutterFlow version: 4.1
- Platform: (General, the error is preventing running or testing)
- Browser name and version: Edge (latest version)
- Operating system and version affected: (Windows 10)
github-actions[bot] commented 3 months ago

This issue is stale because it has been open for 7 days with no activity. If there are no further updates, a team member will close the issue.

ignalauret commented 2 months ago

Hey @AbdelrahmanSalehRewaished thanks for your report. I was able to replicate your issue with having 2 create account buttons. Our technical team is going to review it and keep you updated on this thread.
Have a great day!