summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-04-11 14:10:38 -0700
committerelijah <elijah@riseup.net>2016-04-11 14:10:38 -0700
commit7e0cd47ab44389fb9933345407ad2c2cd2a579b6 (patch)
tree1a386bafde43b7e85494790c3a916c434ae5d0d3 /app/controllers
parent32617f3f90a172228d1a35ea418d716c813824c4 (diff)
allow monitor auth to create users even if invites are normally required.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/v1/users_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/v1/users_controller.rb b/app/controllers/v1/users_controller.rb
index 8296eb0..6640d10 100644
--- a/app/controllers/v1/users_controller.rb
+++ b/app/controllers/v1/users_controller.rb
@@ -63,7 +63,7 @@ module V1
# tester auth can only create test users.
def create_test_account
if User::is_test?(params[:user][:login])
- @user = Account.create(params[:user])
+ @user = Account.create(params[:user], :invite_required => false)
respond_with @user
else
head :forbidden