Skip to content

Commit

Permalink
Merge pull request #13 from Wolox/params-restriction
Browse files Browse the repository at this point in the history
Removing params restriciton for authentication parameters
  • Loading branch information
mishuagopian authored May 5, 2017
2 parents 981e490 + ce794b6 commit e5b9c45
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 e5b9c45

Please sign in to comment.