From c13aa8852b5cbbbea518885f9c207873305b8ded Mon Sep 17 00:00:00 2001 From: Leonard Teo Date: Tue, 4 Feb 2014 15:40:30 -0500 Subject: [PATCH] Whitelist :active param so that we can automatically create users that are active via API --- app/controllers/users_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index f8e0c5a02bf..86b3e34d99c 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -400,7 +400,8 @@ class UsersController < ApplicationController :name, :email, :password, - :username + :username, + :active ).merge(ip_address: request.ip) end end