verbb / formie

The most user-friendly forms plugin for Craft CMS.
Other
93 stars 69 forks source link

User Registration Integration password isn't set correctly #1962

Open cookie10codes opened 2 days ago

cookie10codes commented 2 days ago

Describe the bug

When I create my form and map the fields for the registration, the registration succeeds but I can't login after verifying. I need to reset met password in order to get it to work.

I think there's something mismachting according to passwords?

Tested it out via https://verbb.io/craft-plugins/formie/user-guides/create-a-content-managed-user-registration-form-with-formie and this one works. But I want the default form as the other ones, so the integration would be the best option.

Steps to reproduce

  1. Create a form
  2. Enable User Registration
  3. Map the fields accordingly
Screenshot 2024-06-28 at 19 22 02

Form settings

Craft CMS version

Craft Pro 5.2.3

Plugin version

3.0.0-beta.16

Multi-site?

no

Additional context

No response

engram-design commented 2 days ago

Can you comment on what sort of field you're mapping to the Password attribute?

Using a Password field on my end shows the results as expected. The password will be hashed and stored in the users database table, and when I receive my activation email (as per your settings), and activate my account, I can login with the same password that I used filling out the form.

cookie10codes commented 1 day ago

So I have two password field, the first one with the field handle "password" and the second one with "newPassword". Within the User Registration Integration, I attach the newPassword to the password field.

I also tried the password field, both didn't work. My user gets activated after clicking the verification code.

Maybe the issues lies somewhere else or I'm doing something wrong with the password field.

It only works when I'm doing a forget password process, then I'm able to login

engram-design commented 1 day ago

Are both fields a Password Formie field type though? It sounds like it is, I just wanted to confirm. The handles can be whatever you like, as mapping takes care of things.

I'll keep at trying to replicate this one...

cookie10codes commented 4 hours ago

@engram-design affirmative, they both are