backdrop-contrib / webform_registration

Allow Webforms to register users
GNU General Public License v2.0
0 stars 2 forks source link

Anonymous submission works but then gives Access Denied on confirmation page #2

Open laryn opened 6 years ago

laryn commented 6 years ago

Last known issue is that the anonymous submission works and gives the success message, but then goes to an "Access Denied" page.

Interestingly, the URL is something like this: node/X/done?sid=22&token=b14d402e5ead227b37bdce736b7ecd15 and if I test by removing the query parameters (e.g. node/X/done) it loads the thank you text correctly.

As a test I gave anonymous the Access own webform submissions permission but it didn't help.

Further followup, if I remove the sid query and leave the token, it also gives the thank you text.

And if I disable Webform Registration and submit, it loads fine with the sid in the URL (as expected).

Setting an custom URL on the webform rather than a default webform confirmation page seems to work.

laryn commented 6 years ago

This happens in the same way with Webform 4.x and the Drupal version. Also filed here: https://www.drupal.org/project/webform_registration/issues/3009396

laryn commented 5 years ago

Can confirm that this may have to do with the fact that the webform submission gets attached to the new user, but the person filling the form is still anonymous. If email confirmation is not required in user account settings, they are logged in automatically and the confirmation page displays as expected.

laryn commented 4 years ago

One possibility would be to add a setting to log the user in immediately at the end of the process. (Then they wouldn't get access denied on the confirmation page).

laryn commented 4 years ago

There is a patch that needs testing on the Drupal issue: