Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There is a bug with new user registration which causes the password to not be set and appears to be caused by the location field. The addressfield module recently fixed a bug allowing the field to be optional (https://www.drupal.org/node/968112). Although COD updated to the 1.0 release of the addressfield module, which included the fix, the location field in the cod_profile_base feature needs to be re-exported. Patch to follow...
Comment | File | Size | Author |
---|---|---|---|
#1 | cod_support-update-profile_location-field-2446727-1.patch | 1.47 KB | timwood |
Comments
Comment #1
timwoodComment #2
japerryLooks good! Thanks for pointing that out. I did not include an update hook to revert the view, mainly because I think each site needs to manually review profile data before reverting. But this works great for creating a starting point for new installs.
Fixed!
Comment #3
timwoodAfter further testing and found that the patch does not resolve the fact that there is some kind of validation error. To test, apply the previously provided patch to a new COD site. Enable verify email during account registration. Follow one-time password reset link from registration email. Fill out required fields, including password/verify password, but NOT address. Keep address field collapsed. This works, password gets set. Account fully provisioned.
Now try again but this time add a country and fill in all the required fields in the address field form and then save. A validation error is thrown "Your current password is missing or incorrect; it's required to change the Password." The password doesn't get set. You can not set it because it never got set. You are stuck needing to go get another password reset link sent to you.
Comment #5
japerryNeeds re-testing for new installs.
Comment #6
CountPacMan CreditAttribution: CountPacMan at Drupal Association commentedNew installs work fine.
Comment #7
timwoodCountPanMan, did you follow steps to recreate the issue? Register a ticket & account and try using/not using the address field on profile?
Comment #8
CountPacMan CreditAttribution: CountPacMan at Drupal Association commentedYes - I wasn't able to replicate the issue. I'll have a co-worker double check on their new install.
Comment #9
BabaYaga64 CreditAttribution: BabaYaga64 commentedHi Tim,
I retraced Daniel's steps and was not able to recreate the issue.