summaryrefslogtreecommitdiff
path: root/app/controllers/api/user_accounts_controller
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/api/user_accounts_controller')
-rw-r--r--app/controllers/api/user_accounts_controller/create_logic.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/app/controllers/api/user_accounts_controller/create_logic.rb b/app/controllers/api/user_accounts_controller/create_logic.rb
index 3876c00..2e686b3 100644
--- a/app/controllers/api/user_accounts_controller/create_logic.rb
+++ b/app/controllers/api/user_accounts_controller/create_logic.rb
@@ -17,15 +17,9 @@ module Api
return unless @user_account.save
- generate_user_session_key
+ generate_user_session_key(@user_account)
generate_token
end
-
- private
-
- def service_params
- { email: @user_account.email, role: @user_account.role, session_key: @user_account.session_key }
- end
end
end
end