Answers.Body: <p>I think a custom plugin is going to be the best way to do this.</p>
  
  <p>If the client is adding users from the control panel, they'll either have to put in a dummy email address (username+someUniqueId@domain.com), or you can create a front-end "user management" form for them that fills that in behind the scenes.</p>
  
  <p>Regardless, you'll want to be sure "verify email address" is <em>not</em> enabled for the user at this point.</p>
  
  <p>Then, assuming you'll be providing your own front-end login form for these users, with username/password fields (password not required), you'll want to point the form to your plugin's controller with it's own actionLogin method (very similar to Craft's UsersController->actionLogin), but check to see if password is null and if the username is valid and if the email is in the format of the unique email address that was previous assigned.</p>
  
  <p>If so, prompt for their actual email, then send Craft's activation email and let it go through Craft's usual workflow for setting a password on the user account.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-09-03T20:45:33.497Z
Answers.Text: Thanks, sounds like a good way to do it! I'll dig into the existing code.
Answers.UserDisplayName: Fred Carlsen
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-09-03T17:02:16.663Z
Answers.LastActivityDate: 2014-09-03T17:02:16.663Z
Answers.UserDisplayName: Brad Bell
Body: <p>I have a client that has a need for adding users without knowing their e-mail beforehand. Their wish is that when the user login for the first time, they are prompted to enter their e-mail, which also needs to be verified as normally by sending a activate link.</p>
  
  <p>Is this possible to do?</p>
  
  <p>Perhaps something hooked into the users.onBeforeSaveUser event?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-08-31T21:00:11.770Z
Comments.Text: How do they log in the first time?  Is a username created when initially saving the user the first time?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-09-01T07:49:40.220Z
Comments.Text: Yes, the admins would create the users as normally, from the cp.
Comments.UserDisplayName: Fred Carlsen
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-09-01T18:39:13.493Z
Comments.Text: For initial account creation, I frequently just use a plussed version of a utility email address, something like: admin+someonesname@yourdomain.com.  That creates the user and just associates their account with an email that would get redirected to Gmail supports address plussing.  You might need to check if your email provider does.  For the rest of that process, I expect you'd need to do some plugin dev.
Comments.UserDisplayName: Ben Parizek
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-09-03T10:32:08.383Z
Comments.Text: @BradBell Not sure if you got my reply, but i'm thinking Ben's reply might be worthwhile, if there is some way to tell Craft to verify the e-mail they enter, and also a way to check if they have verified, and not allow them past the verification screen before they do.
Comments.UserDisplayName: Fred Carlsen
Tags: <users><emails>
Title: Create users without providing e-mail
ThreadText: # Create users without providing e-mail
  
  (Asked by: username_0 on 2014-08-31)
  
  I have a client that has a need for adding users without knowing their e-mail beforehand. Their wish is that when the user login for the first time, they are prompted to enter their e-mail, which also needs to be verified as normally by sending a activate link.
  
  Is this possible to do?
  
  Perhaps something hooked into the users.onBeforeSaveUser event?
  
  **Tags:** users, emails
  
  > **Comments:**
  > **username_1**: How do they log in the first time?  Is a username created when initially saving the user the first time?  
  > **username_0**: Yes, the admins would create the users as normally, from the cp.  
  > **username_2**: For initial account creation, I frequently just use a plussed version of a utility email address, something like: admin+someonesname@yourdomain.com.  That creates the user and just associates their account with an email that would get redirected to Gmail supports address plussing.  You might need to check if your email provider does.  For the rest of that process, I expect you'd need to do some plugin dev.  
  > **username_0**: @username_1 Not sure if you got my reply, but i'm thinking Ben's reply might be worthwhile, if there is some way to tell Craft to verify the e-mail they enter, and also a way to check if they have verified, and not allow them past the verification screen before they do.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2014-09-03. Score: 0 | Accepted answer
  
  I think a custom plugin is going to be the best way to do this.
  
  If the client is adding users from the control panel, they'll either have to put in a dummy email address (username+someUniqueId@domain.com), or you can create a front-end "user management" form for them that fills that in behind the scenes.
  
  Regardless, you'll want to be sure "verify email address" is *not* enabled for the user at this point.
  
  Then, assuming you'll be providing your own front-end login form for these users, with username/password fields (password not required), you'll want to point the form to your plugin's controller with it's own actionLogin method (very similar to Craft's UsersController->actionLogin), but check to see if password is null and if the username is valid and if the email is in the format of the unique email address that was previous assigned.
  
  If so, prompt for their actual email, then send Craft's activation email and let it go through Craft's usual workflow for setting a password on the user account.
  
  > **Comments:**
  > **username_0**: Thanks, sounds like a good way to do it! I'll dig into the existing code.  
  
  ---
  
  