Skip to content

Commit 01545df

Browse files
committed
Merge branch 'CHEF-822' of git://github.com/tfheen/chef into tfheen/CHEF-822
2 parents 3b59c9d + 0a4b380 commit 01545df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • chef-server-webui/app/controllers

chef-server-webui/app/controllers/users.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def login_exec
141141
begin
142142
@user = Chef::WebUIUser.load(params[:name])
143143
rescue Net::HTTPServerException => e
144-
raise NotFound, "Cannot find user #{params[:name]}"
144+
raise(Unauthorized, "Wrong username or password.")
145145
end
146146
raise(Unauthorized, "Wrong username or password.") unless @user.verify_password(params[:password])
147147
complete

0 commit comments

Comments
 (0)