about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-01-07 14:50:20 +0100
committerGitHub <noreply@github.com>2019-01-07 14:50:20 +0100
commit43c61bca60016cad5d3fae210fd57622b40225a8 (patch)
tree9529491545d4a340d63308105877963a54848b64 /app/services
parent0a4caa89c364fb9dcec966166e4bc9620ddf1013 (diff)
Add locale param to sign-up API (#9747)
Fix #9627
Diffstat (limited to 'app/services')
-rw-r--r--app/services/app_sign_up_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/app_sign_up_service.rb b/app/services/app_sign_up_service.rb
index 1878587e8..d621cc462 100644
--- a/app/services/app_sign_up_service.rb
+++ b/app/services/app_sign_up_service.rb
@@ -4,7 +4,7 @@ class AppSignUpService < BaseService
   def call(app, params)
     return unless allowed_registrations?
 
-    user_params    = params.slice(:email, :password, :agreement)
+    user_params    = params.slice(:email, :password, :agreement, :locale)
     account_params = params.slice(:username)
     user           = User.create!(user_params.merge(created_by_application: app, password_confirmation: user_params[:password], account_attributes: account_params))