19 votes
Accepted

How to add custom user fields to the front end registration page

You need to change your input tag from: <input id="Address" type="text" name="Address" {%- if account is defined %} value="{{ account.Address}}"{% endif -%}> To: <input id="Address" type="...
user avatar
  • 66.5k
16 votes
Accepted

Auto log in user

Check out the autoLoginAfterAccountActivation config setting. To enable it, set it to true in your craft/config/general.php file: 'autoLoginAfterAccountActivation' => true
user avatar
  • 13.3k
11 votes

User registration: How do implement "Confirm password" and "Confirm email"?

If anyone is interested in confirming passwords still, I have wrote a plugin which does just this, it doesn't rely on it's own controller either so there is no bypassing of Crafts own workings :) ...
user avatar
  • 4,519
8 votes

User registration form add user to User Group?

See the docs here: https://craftcms.com/docs/users#public-registration Public Registration Craft Pro has the option of allowing public user registration. It is not enabled by default, though. ...
user avatar
  • 671
7 votes

How do you set a user's group on a registration form?

If you're looking for a Craft 3 solution, I just got this set up on a project and hope it helps someone else out. First you'll need to add a custom field to your form. If you want your user to ...
user avatar
  • 1,932
7 votes
Accepted

What password requirements exist for new users?

Craft 2: By default Craft enforces a 6 character minimum as the only password requirement, but as of Craft 2.3, a plugin can now listen for the users.onBeforeSetPassword event to enforce any password ...
user avatar
  • 66.5k
6 votes

Can admin receive email notifications of new user registrations?

I believe you would need a plugin for this — but the plugin can be really basic. In your plugin's main file simply add an 'init' method that listens to the 'users.saverUser' event and checks the '...
user avatar
6 votes
Accepted

Public Registration

The users are not getting assigned to the default user group. You're probably testing front-end user registration with an already logged in user account. Make sure you log out of your current one ...
user avatar
  • 66.5k
5 votes
Accepted

Ajax front-end user registration form - not returning JSON

EDIT Craft 2.4 is now available, and the users/saveUser action will now return a JSON response for AJAX requests. The original answer is still valid for <2.4 builds: No, there's no way to ...
user avatar
4 votes

What can we do to help avoid member activation emails going to spam?

This the best article I've read on reliably delivering emails through code: http://blog.codinghorror.com/so-youd-like-to-send-some-email-through-code/
user avatar
  • 66.5k
4 votes

User registration: How do implement "Confirm password" and "Confirm email"?

In addition to letting JavaScript take care of the extra front-end logic, you could also write a plugin that exposes a controller that does the extra email and password sameness checks from PHP. If ...
user avatar
  • 66.5k
4 votes

How do you set a user's group on a registration form?

This answer was originally written for Craft 2. For a Craft 3 solution, see Ryan's answer above. I literally just worked through this problem last week. Ran into the same issue, so I reached out to P&...
user avatar
  • 23.6k
4 votes
Accepted

Send activation mail from front end

I'll focus on the "sending an activation email from the front end" part of your question, since that seems to be the crux of it: You'd have to write a very simple, custom plugin. For instant success, ...
user avatar
4 votes
Accepted

Registration into default group is not working as expected

I get bit by this a lot. Just like @Stephen Lewis suggested - make sure you are not logged into the same browser. For example, log into the CP with Safari (or whatever) and then use Chrome to ...
user avatar
  • 4,696
4 votes
Accepted

Send email to website owner after user registration

I have done something very similar. You'll want to create a plugin for this. In my case, I am validating email addresses so I was checking against the onBeforeActivateUser event. If you are not ...
user avatar
  • 4,696
4 votes

User registration form with checkbox field

Just in case anyone else has this issue i got it working with these modifications. I think the hidden field was required for the possibility of null values. <input type="hidden" name="fields[...
user avatar
  • 73
4 votes
Accepted

Save and login user in a Plugin?

Put this at the top of the file: use craft\elements\User; Within your function use the following code: $user = new User(); $user->pending = true; $user->username = $contact["login_email"]; $...
user avatar
3 votes

Robust Form Plugins for Craft?

Commerce is definitely Craft's achilles' heel right now. Like you, I'd love to switch over completely off WP but picking the best tool for the job means either rolling up your sleeves and writing ...
user avatar
  • 6,477
3 votes
Accepted

Front-end Registration Form just refreshes with no error displayed and user not created

Solved the mystery. :) The issue was that even though my user fields were not required, there was a numeric 'year' field which had min and max values set, and this was throwing it off (and I had ...
user avatar
  • 549
3 votes
Accepted

Registration Form twig add to an usergroup

1) You can set the default user group through your admin: 2) Also I'm pretty sure <input type="hidden" name="userGroups" = "1"> needs to be set to <input type="hidden" name="userGroups" ...
user avatar
  • 1,685
3 votes
Accepted

How can you check if "public user registration" is turned on or off on the front-end?

You can write a plugin that has a Template Variable that exposes Craft's SystemSettingsService->getSettings() method like so: public function isPublicRegistrationEnabled() { return craft()->...
user avatar
  • 66.5k
3 votes

User registration approval/activation

There's a nice plugin by Trevor Davis for this use case: https://github.com/vigetlabs/craft-pendinguser
user avatar
  • 35.9k
3 votes

User registration approval/activation

There is no current way that I know of that does this, but you can probably do it relatively easy with a custom plugin. If e-mail validation is turned off in the Users settings, the created user is ...
user avatar
  • 2,957
3 votes
Accepted

How can I get a user to choose in which group he registers using the User Registration Form

As far as I know there is no way to do this without a plugin. However, developing a plugin for this is not difficult. In your form you would want to add an additional drop-down, multi-select, or ...
user avatar
3 votes

User Registration - Keep as inactive until verified by admin

Some sort of workaround You can make a register user group with no permissions. Than add another group with the permissions you want. After registration, the admin can put a new user to the new ...
user avatar
3 votes

Can admin receive email notifications of new user registrations?

No custom plugin necessary if you don't want to write one, as there is already one that exists to do this very task and so much more. Checkout Postmaster for Craft. https://github.com/objectivehtml/...
user avatar
3 votes
Accepted

Mandrill integration not sending email for front-end registration form

Emails only send out when you're not logged in as admin from the front-end registration form.
user avatar
  • 865
3 votes
Accepted

Unverified emails blocking user registration

I'm not sure that I agree with your analysis. At a minimum maybe it's a feature request with a config setting to change the behavior. But if you're really concerned about the behavior, you can ...
user avatar
  • 66.5k
3 votes
Accepted

Custom login/profile sections?

Its not at all difficult. Here's the example form from the docs: https://craftcms.com/docs/templating/user-registration-form <form method="post" accept-charset="UTF-8"> {{ getCsrfInput() }}...
user avatar
3 votes
Accepted

Auto-login on account activation

(Not necessarily a great answer to your question, but it's in the same wheelhouse and might be handy if you're working in this area)! I remember having issues with this myself (to be honest the ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible