Title: Register user security problem
Last modified: September 15, 2016

---

# Register user security problem

 *  Resolved [riggitt](https://wordpress.org/support/users/riggitt/)
 * (@riggitt)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/register-user-security-problem/)
 * I realized you can register new users using this plugin even if you set your 
   WordPress to deny new users to do so.
 * I made a simple fix in user controller register method to make it follow your
   WordPress settings.
 *     ```
       ...
           public function register() {
   
               global $json_api;
   
               if (!get_option('users_can_register')) {
                   $json_api->error("YOU CANNOT PASSS");            
               }
       ...
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ali Qureshi](https://wordpress.org/support/users/parorrey/)
 * (@parorrey)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/register-user-security-problem/#post-8189065)
 * thanks!

Viewing 1 replies (of 1 total)

The topic ‘Register user security problem’ is closed to new replies.

 * ![](https://ps.w.org/json-api-user/assets/icon-256x256.png?rev=1965790)
 * [JSON API User](https://wordpress.org/plugins/json-api-user/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-api-user/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-api-user/)
 * [Active Topics](https://wordpress.org/support/plugin/json-api-user/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-api-user/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-api-user/reviews/)

## Tags

 * [Registration](https://wordpress.org/support/topic-tag/registration/)
 * [user](https://wordpress.org/support/topic-tag/user/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ali Qureshi](https://wordpress.org/support/users/parorrey/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/register-user-security-problem/#post-8189065)
 * Status: resolved