summaryrefslogtreecommitdiff
path: root/lib/chef_zero/endpoints/authenticate_user_endpoint.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2019-12-29 18:00:24 -0800
committerTim Smith <tsmith84@gmail.com>2019-12-29 18:00:24 -0800
commitecad8fee4a946b337e60a4274de2b2c872c9e81b (patch)
treebbf7fc8b3feae42007f7b9d7fe53648d315c410a /lib/chef_zero/endpoints/authenticate_user_endpoint.rb
parenta8206d6c6f03de1fde15c49f6fe9ddb1d0071b7a (diff)
downloadchef-zero-ecad8fee4a946b337e60a4274de2b2c872c9e81b.tar.gz
Apply Chefstyle
Autocorrect with the latest chefstyle Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef_zero/endpoints/authenticate_user_endpoint.rb')
-rw-r--r--lib/chef_zero/endpoints/authenticate_user_endpoint.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef_zero/endpoints/authenticate_user_endpoint.rb b/lib/chef_zero/endpoints/authenticate_user_endpoint.rb
index e54b8f1..44ed24e 100644
--- a/lib/chef_zero/endpoints/authenticate_user_endpoint.rb
+++ b/lib/chef_zero/endpoints/authenticate_user_endpoint.rb
@@ -19,6 +19,7 @@ module ChefZero
if user["password"] != password
raise RestErrorResponse.new(401, "Bad username or password")
end
+
# Include only particular user data in the response
user.keep_if { |key, value| %w{first_name last_name display_name email username}.include?(key) }
json_response(200, {