Answers.Body: <p>You could do this in a plugin by listening for some user-related events.  In particular, <a href="http://buildwithcraft.com/docs/plugins/events-reference#users-onBeforeActivateUser" rel="nofollow">onBeforeActivateUser</a>, where you could cancel user activation by setting <code>$event-&gt;performAction = false;</code></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-11T15:56:37.490Z
Answers.Text: Ok looks like I might have to delve into Plugin Development. I assume this is my best starting point: http://buildwithcraft.com/docs/plugins/introduction
Answers.UserDisplayName: mmc501
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-11T16:13:32.857Z
Answers.Text: That's a good start!
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-11T14:40:08.303Z
Answers.LastActivityDate: 2014-12-11T16:13:17.767Z
Answers.LastEditDate: 2014-12-11T16:13:17.767Z
Answers.UserDisplayName: Brad Bell
Answers.Body: <p>Some sort of workaround</p>
  
  <ul>
  <li>You can make a register user group with no permissions.  </li>
  <li>Than add another group with the permissions you want.</li>
  </ul>
  
  <p>After registration, the admin can put a new user to the new group. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-02-09T12:27:02.780Z
Answers.Text: @mmc501 you can always add another conditional to your template to check for the user's group before giving access.
Answers.UserDisplayName: carlcs
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-11T15:58:44.507Z
Answers.Text: Thanks but not sure if it will work in this case. the Login is basically to access the whole front end of the site - so once activated they can get in. Unless the login script can only grant access to specific user groups?
Answers.UserDisplayName: mmc501
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-11T15:45:15.770Z
Answers.LastActivityDate: 2014-12-11T15:45:15.770Z
Answers.UserDisplayName: Johannes Lamers
Body: <p>I have set up a public registration form simply using the User registration form: <a href="https://craftcms.com/docs/templating/user-registration-form" rel="nofollow noreferrer">https://craftcms.com/docs/templating/user-registration-form</a></p>
  
  <p>Is there a way to set it so that when users register they need to be activated by an admin account?</p>
  
  <p>Currently when they register they get an email to verify email address and when they do they get activated.
  If I turn off verify email addresses in user settings they simple get activated automatically.</p>
  
Tags: <users><registration><activation>
Title: User Registration - Keep as inactive until verified by admin
ThreadText: # User Registration - Keep as inactive until verified by admin
  
  (Asked by: username_0 on 2014-12-11)
  
  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 need to be activated by an admin account?
  
  Currently when they register they get an email to verify email address and when they do they get activated.
  If I turn off verify email addresses in user settings they simple get activated automatically.
  
  **Tags:** users, registration, activation
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2014-12-11. Score: 2 | Accepted answer
  
  You could do this in a plugin by listening for some user-related events. In particular, [onBeforeActivateUser](http://buildwithcraft.com/docs/plugins/events-reference#users-onBeforeActivateUser), where you could cancel user activation by setting `$event->performAction = false;`
  
  > **Comments:**
  > **username_0**: Ok looks like I might have to delve into Plugin Development. I assume this is my best starting point: http://buildwithcraft.com/docs/plugins/introduction  
  > **username_1**: That's a good start!  
  
  ---
  
  ### Answer by username_2 on 2014-12-11. Score: 3
  
  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 group.
  
  > **Comments:**
  > **username_0**: Thanks but not sure if it will work in this case. the Login is basically to access the whole front end of the site - so once activated they can get in. Unless the login script can only grant access to specific user groups?  
  > **username_3**: @username_0 you can always add another conditional to your template to check for the user's group before giving access.  
  
  ---
  
  