<blockquote>
  <p>The form submits and the user is created, but no verification email is sent and the user is not assigned to the group I selected in User Settings.</p>
</blockquote>

<p>That sounds like there is a validation error is happening in your form on the UserModel.  Perhaps on a required custom field. You didn't share your form, but is it checking for errors?</p>

<blockquote>
  <p>If I manually send a verification email, following the link causes the user to be verified, but still not added to any Group.</p>
</blockquote>

<p>Make sure you're not running any plugins that might be interfering listening to the <code>onSaveUser</code> event.</p>

<blockquote>
  <p>Further, the user is redirected to <a href="http://sitename/dashboard" rel="nofollow">http://sitename/dashboard</a>, despite having a redirect set in the Config > General file.</p>
</blockquote>

<p>That's a bug that's been fixed for the next (post <a href="https://craftcms.com/changelog#build2791" rel="nofollow">2.6.2791</a>) release.</p>

CC BY-SA 3.0
2016-06-20T18:07:44.443Z
Good call, Brad! The Charge plugin from Squarebit is the culprit - after disabling it everything works as expected. Thanks!
Roi Agneta
CC BY-SA 3.0
2016-06-20T19:46:59.133Z
There's nothing specific in Charge that touches any of the user events, and I can't replicate this with any clean install. @RoiAgneta - are you running anything custom on top of Charge that's adding extra user handling?
Joel Bradbury
CC BY-SA 3.0
2016-06-24T12:45:48.580Z
For future reference to anyone running across this, it wasn't anything specific to Charge causing it. Actual problem looks like it was a more general server setup problem.
Joel Bradbury
CC BY-SA 3.0
2016-06-24T16:37:24.313Z
@JoelBradbury A likely story.
Brad Bell
CC BY-SA 3.0
2016-06-25T21:11:33.613Z
After hours of playing around with this, it turns out that Charge is not causing any issues. Still do not understand what is going on, will update when i get it sorted.
Roi Agneta
CC BY-SA 3.0
2016-06-20T17:33:33.427Z
2016-06-20T17:33:33.427Z
Brad Bell
<p>I am not able to get User Registration to work properly using a frontend form from the Craft Docs (<a href="https://craftcms.com/docs/templating/user-registration-form" rel="nofollow">https://craftcms.com/docs/templating/user-registration-form</a>).</p>

<p>Here are the particulars:</p>

<p>Craft Pro Version = 2.6.2791</p>

<p>Users > Settings has the ‘verify email addresses’ and ‘allow public registration’ boxes checked, and a default User group selected</p>

<p>I specified a redirect in craft > config > general to 'activateAccountSuccessPath' => 'registration-success',</p>

<p>The form submits and the user is created, but no verification email is sent and the user is not assigned to the group I selected in User Settings. If I manually send a verification email, following the link causes the user to be verified, but still not added to any Group. Further, the user is redirected to <a href="http://sitename/dashboard" rel="nofollow">http://sitename/dashboard</a>, despite having a redirect set in the Config > General file.</p>

<p>I tried this on two different Craft sites, each on different hosts (one of which is Arcustech) and both of which are running the latest Craft release (2.6.2791).</p>

<registration><user-groups>
Multiple issues with User Registration from frontend
# Multiple issues with User Registration from frontend

(Asked by: username_0 on 2016-06-20)

I am not able to get User Registration to work properly using a frontend form from the Craft Docs (<https://craftcms.com/docs/templating/user-registration-form>).

Here are the particulars:

Craft Pro Version = 2.6.2791

Users > Settings has the ‘verify email addresses’ and ‘allow public registration’ boxes checked, and a default User group selected

I specified a redirect in craft > config > general to 'activateAccountSuccessPath' => 'registration-success',

The form submits and the user is created, but no verification email is sent and the user is not assigned to the group I selected in User Settings. If I manually send a verification email, following the link causes the user to be verified, but still not added to any Group. Further, the user is redirected to <http://sitename/dashboard>, despite having a redirect set in the Config > General file.

I tried this on two different Craft sites, each on different hosts (one of which is Arcustech) and both of which are running the latest Craft release (2.6.2791).

**Tags:** registration, user-groups

---

## 1 answers

### Answer by username_1 on 2016-06-20. Score: 1

> The form submits and the user is created, but no verification email is sent and the user is not assigned to the group I selected in User Settings.

That sounds like there is a validation error is happening in your form on the UserModel. Perhaps on a required custom field. You didn't share your form, but is it checking for errors?

> If I manually send a verification email, following the link causes the user to be verified, but still not added to any Group.

Make sure you're not running any plugins that might be interfering listening to the `onSaveUser` event.

> Further, the user is redirected to <http://sitename/dashboard>, despite having a redirect set in the Config > General file.

That's a bug that's been fixed for the next (post [2.6.2791](https://craftcms.com/changelog#build2791)) release.

> **Comments:**
> **username_0**: Good call, Brad! The Charge plugin from Squarebit is the culprit - after disabling it everything works as expected. Thanks!  
> **username_2**: There's nothing specific in Charge that touches any of the user events, and I can't replicate this with any clean install. @RoiAgneta - are you running anything custom on top of Charge that's adding extra user handling?  
> **username_2**: For future reference to anyone running across this, it wasn't anything specific to Charge causing it. Actual problem looks like it was a more general server setup problem.  
> **username_1**: @JoelBradbury A likely story.  
> **username_0**: After hours of playing around with this, it turns out that Charge is not causing any issues. Still do not understand what is going on, will update when i get it sorted.  

---

