Questions tagged [registration]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
12
votes
1answer
2k views

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

This question is similar to this post, but more of the next logical step. I have added custom fields to my user profiles, but would like these attributes to be part of the registration page. For ...
8
votes
5answers
2k views

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

In a registration form with public signup possible, how do you set the user group for a particular form? As a stop-gap I am attempting to use the following code: function init() { craft()->on(...
6
votes
1answer
1k views

Ajax front-end user registration form - not returning JSON

I have a user registration form on the front-end of a site that is working well as a standard form, but when I try to use ajax submission, I'm getting an HTML response rather than JSON. Here's the ...
4
votes
1answer
520 views

What password requirements exist for new users?

My site contains a front-end registration form. New users will be automatically activated, and can begin using their account immediately. What password requirements exist? I vaguely remember a 6-...
4
votes
1answer
257 views

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

We have a new Craft site that includes front-end member registration. We've heard from the client that many of the activation emails are getting stuck in spam filters (and I just tested with the same ...
4
votes
1answer
796 views

Create default password for new user registration in CP

I have a situation where I want to assign a default password when a user is registered in the CP, but only if they are assigned to a specific user group. Plugin code looks like this: craft()->on('...
3
votes
3answers
1k views

User registration: How do implement “Confirm password” and “Confirm email”?

I've got a user registration form on my site, using the code from Craft's documentation. How can I get the form working so it asks the user to enter their email address and password twice? Can Craft ...
3
votes
1answer
1k views

Auto log in user

I’m setting up a site that has paid membership. For a visitor to create an account I’ll need to: Ask for email and password and create the new user. Take payment and upgrade the user’s status/user ...
3
votes
3answers
921 views

Can admin receive email notifications of new user registrations?

I would've thought this would be core functionality, but does it require additional plugin functionality?
3
votes
4answers
2k views

Robust Form Plugins for Craft?

We're doing a rebrand and web overhaul for a Christian camp, retreat, and conference center. A big part of the site is a registration system where people can register for an event, fill out a detailed ...
3
votes
2answers
661 views

Send activation mail from front end

I am building a site where all the content (and users) are being managed using the front end. The site owner needs to invite customers to the site but would like to control the time when that customer ...
3
votes
1answer
857 views

Public Registration

So I'm trying to setup public registration for the first time. I'm running into two problems: The users are not getting assigned to the default user group The password is not required but fails ...
3
votes
2answers
359 views

Send email to website owner after user registration

I have a client that wants to get notified whenever someone registers on their website. How can I do this, is there some kind of plugin? If not how would I go about doing this?
3
votes
2answers
925 views

Register a user as part of a Commerce checkout?

Is it possible to register a user for a Craft user account as part of a Craft Commerce checkout flow? Ideally something where you can ask if the user wants to create an account and save their details ...
3
votes
1answer
85 views

Registration into default group is not working as expected

Here are my settings for user registration: \ When front end registration completes the users are added fine but not into the default user group as expected. They are just in the system with no ...
3
votes
1answer
143 views

Unverified emails blocking user registration

craft()->users->saveUser seems to check email for uniqueness across ALL users, not just verified ones. It seems like it should only check against verified ones to me. Example: boob@gmail.com ...
3
votes
1answer
456 views

Problem with user activation links

I'm having a pretty consistent issue with the user activation links sent out in the registration emails. Having a hard time diagnosing because I can't replicate it myself, but getting several users a ...
3
votes
1answer
320 views

The difference between username and loginName

In the examples they're used mixed: Registration <input id="username" type="text" name="username" {%- if account is defined %} value="{{ account.username }}"{% endif -%}> Login <input ...
3
votes
1answer
248 views

New user validates without confirming email

I've built a plugin that does some work before saving the user from the standard Registration Form. My only issue is it does not fire the activation email which I added in. But it lets the user login ...
3
votes
0answers
75 views

Dukt Social Plugin Not Creating User

I'm currently Authenticating users via OAuth and Social Login by Dukt. I have Facebook app all set up and running as well as Twitter. The user gets redirected, asked to Authorise but when it returns ...
2
votes
2answers
2k views

User registration approval/activation

Want to do two things and wondering if I'm missing something in the docs or if someone has tackled this already: User registers on the front end and get success messages saying they will be notified ...
2
votes
2answers
555 views

User Registration - Keep as inactive until verified by admin

I have set up a public registration form simply using the User registration form: https://craftcms.com/docs/templating/user-registration-form Is there a way to set it so that when users register they ...
2
votes
2answers
187 views

Front-end registration validation

I have a front-end registration page and need to change the validation to add (minimum characters for information on the page and to make fields to accept only letters and other to accept only number ...
2
votes
2answers
374 views

Auto-login on account activation

Anybody got any suggestions on debugging autoLoginAfterAccountActivation and activateAccountSuccessPath not working? These are set in general.php of my config but when a user activates their account ...
2
votes
1answer
461 views

User registration form with checkbox field

Hi I have user registration form with multiple custom fields. They all work fine except for the field I have as a checkbox. It returns an error of 'my-field' is invalid. Any ideas anyone? code below (...
2
votes
1answer
360 views

AJAX Front-end User Registration Form not displaying macro errorList

I have a user registration form on my Front-end which is submitted with Ajax which works fine. The only problem is that if I have any errors, like an already in use username they wont be displayed. ...
2
votes
1answer
36 views

Autologin destination

A bit of an extension of my previous query at Auto-login on account activation I want to a user to: automatically login on account activation, and be redirected to a predetermined page on account ...
2
votes
1answer
862 views

Custom login/profile sections?

Apologies if this has been asked before, I couldn't find any documentation specifically about it. I come from a largely WordPress background but am looking into using Craft Pro for a new client that'...
2
votes
1answer
219 views

Mandrill integration not sending email for front-end registration form

Update Emails only send out when you're not logged in as admin from the registration form. No errors received in dev mode, user created, but no activation email sent. Definitely not getting passed to ...
2
votes
1answer
230 views

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

Is there a way to allow a registrant to choose a user group in the registration form? I tried using the following code but it didn't work: <input type="hidden" name="userGroups" value="3">
2
votes
1answer
76 views

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

I'm trying to make a rather bullet proof front-end template that can toggle a sign up link based on if public registration is enabled or not. Is there a way I can query to see if the system currently ...
2
votes
1answer
534 views

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

I am using the registration form from the docs here - https://craftcms.com/docs/templating/user-registration-form - in the front end of my site. Unfortunately, when I click on "Register" the page just ...
2
votes
1answer
431 views

Registration Form twig add to an usergroup

I just started using Craft and I'm a little stuck with a public registration form. I made a user group and wanted to add these to the saveUser form. I found this answer but don't know where to find ...
2
votes
1answer
48 views

Autologin after frontend registration

I have a frontend user account registration form and I d like to auto login the user automatically after the account creation. So the user can choose a subscription plan and pay immediately after, ...
2
votes
1answer
272 views

Craft - suitability for membership/user registration and document upload/management

I have created about 30 sites using Perch but find it somewhat frustrating, especially the support. Considering using Craft for my next project but can it handle: Membership/user registration. Ie can ...
2
votes
1answer
161 views

Does Craft Commerce support One Time Password and Social Login features?

I have just started reviewing this plugin for e-commerce development. Fully featured though it is, I wanted to know if Craft Commerce can also support custom auth (login and registration) features ...
2
votes
1answer
101 views

Conditional for user registration fields

What’s the best way to validate a user registration form to make sure that at least one of two fields is not empty? I’ve tried a very simple controller but can’t get this to work past the point of ...
2
votes
1answer
587 views

Craft front-end forms not working with Angularjs app

I'm making a site with Craft CMS/Angularjs. I'm using angular to filter and display entries on the index page and it's working good so far except for one thing. The login/register/entry form's all don'...
2
votes
1answer
413 views

Multiple issues with User Registration from frontend

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 ...
2
votes
1answer
215 views

Password should fail on front-end registration form

Update For anyone else having a braindead moment, registration form errors only display for password when logged out. If you're logged in as admin they won't display. User posted even though using an ...
2
votes
0answers
93 views

How can I validate/make a matrix field required on the front-end?

I am displaying inputs on the front-end of my form that are populating a matrix within the CP. Overall everything is working fine. The problem I am having is validation. I've got the field marked as ...
2
votes
0answers
94 views

How can I make a SmartMap field required on a user profile page?

I am using Craft 2.5 (Beta) along with the fantastic SmartMap plugin. I have a user registration page that I am using the SmartMap field with like this: twig ... <div class="form-group has-...
2
votes
1answer
485 views

How can I get custom user registration field parameters

I am allowing users to register on my site. I want to have the field "full name" on the registration page which, from there I will eventually split that value to populate the first name & last ...
1
vote
1answer
754 views

User registration form add user to User Group?

When using the User Registration Form (https://craftcms.com/docs/templating/user-registration-form), how do I make it so the user is added to a predefined User Group?
1
vote
1answer
516 views

Save and login user in a Plugin?

How can I register and login a user in my Controller? I have tried something like this: $newUser = new User($userName, $userPassword, $userEmail); Craft::$app->elements->saveUser($newUser);
1
vote
1answer
90 views

How to get the original entered password value on registration form error?

I want to customize the user-registration-form with error/success-states. If, for example, the user enters a wrong email, but correct username and password, it would be nice to set the value of the ...
1
vote
1answer
148 views

Custom registration User validation

I'm building a custom registration process in which a set of entries and a user are created at the same time. Currently I'm not able to pass back my errors in my controller into the front-end ...
1
vote
1answer
16 views

Detect if it is a new user or not in PHP

I have been developing some plugin code for my registration form in Craft 3. The event will be EVENT_AFTER_SAVE_ELEMENT, but I do not know how to detect if it is a new user or not. In Craft 2, the ...
1
vote
1answer
508 views

Craft 3 Registration Form Success Redirect

Is it possible to redirect the user to a specific page after they successfully complete the front-end registration form (before activation)? I've tried adding: <input type="hidden" name="action" ...
1
vote
2answers
269 views

Register a user to a specific group

I'm trying to register a user from the front-end and assign them to a specific group. I know that via control panel I can set a default user group, but there is a registration instance where I need ...