From c86a5c9e05b183f10a63fb693c8af1d1d5a52e97 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sun, 26 Feb 2023 20:19:22 -0600 Subject: Refactoriza los create logics --- app/controllers/api/authentications_controller/create_logic.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'app/controllers/api/authentications_controller/create_logic.rb') diff --git a/app/controllers/api/authentications_controller/create_logic.rb b/app/controllers/api/authentications_controller/create_logic.rb index 2f42852..782c760 100644 --- a/app/controllers/api/authentications_controller/create_logic.rb +++ b/app/controllers/api/authentications_controller/create_logic.rb @@ -15,15 +15,9 @@ module Api def call return unless @user_account&.authenticate(@password) - generate_user_session_key + generate_user_session_key(@user_account) generate_token end - - private - - def service_params - { email: @email, role: @user_account.role, session_key: @user_account.session_key } - end end end end -- cgit v1.2.3