From ce794b66cb0617d35653f09e687aa1d7475994db Mon Sep 17 00:00:00 2001 From: Michel Agopian Date: Fri, 5 May 2017 09:27:13 -0300 Subject: [PATCH] removing params restriciton for authentication parameters --- lib/wor/authentication/sessions_controller.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/wor/authentication/sessions_controller.rb b/lib/wor/authentication/sessions_controller.rb index dfea710..7c0c90f 100644 --- a/lib/wor/authentication/sessions_controller.rb +++ b/lib/wor/authentication/sessions_controller.rb @@ -63,12 +63,10 @@ def render_error(error_message, status) render json: { error: error_message }, status: status end - # I'm pretty sure this should be set by gems users and not us def authenticate_params - params.require(:session).permit(:email, :password) + params.require(:session) end - # I'm pretty sure this should be set by gems users and not us def renew_token_params params.require(:session).permit(:renew_id) end