Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

FIX - Find user

  • Loading branch information...
commit e1af9b6a9a4c520119e6a3c9ff8ad5427e3eaf86 1 parent 8c0f5da
@kevinmarvin kevinmarvin authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 app/models/auth_source_crowd.rb
View
6 app/models/auth_source_crowd.rb
@@ -21,7 +21,11 @@ def get_user_attrs(username)
def authenticate(login, password)
self.test_connection unless app_token
- crowd_user = Crowd.find_principal_by_username(login)
+ begin
+ crowd_user = Crowd.find_principal_by_username(login)
+ rescue Crowd::AuthenticationObjectNotFoundException => e
+ return false
+ end
attrs={}
if crowd_user
begin
Please sign in to comment.
Something went wrong with that request. Please try again.