Skip to content

Commit

Permalink
removing params restriciton for authentication parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
mishuagopian committed May 5, 2017
1 parent 981e490 commit ce794b6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/wor/authentication/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce794b6

Please sign in to comment.