Skip to content
This repository was archived by the owner on Aug 29, 2018. It is now read-only.

Commit 3d45f51

Browse files
author
OpenShift Bot
authored
Merge pull request #6413 from abhgupta/abhgupta-dev
Merged by openshift-bot
2 parents 4a6b4ef + 4bb8ce1 commit 3d45f51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller/app/models/cloud_user.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def self.find_or_create_by_identity(provider, login, create_attributes={}, &bloc
165165
rescue Mongoid::Errors::DocumentNotFound
166166
# if authentication is configured for lookup only, then return an exception
167167
if Rails.application.config.openshift[:auth_user_lookup_only]
168-
raise OpenShift::UserException.new(Rails.application.config.openshift[:auth_user_lookup_fail_msg])
168+
raise OpenShift::UserException.new(Rails.application.config.openshift[:auth_user_lookup_fail_msg], nil, :new_users_blocked, nil, :forbidden)
169169
end
170170
user = new(create_attributes)
171171
#user.current_identity = user.identities.build(provider: provider, uid: login)

0 commit comments

Comments
 (0)