Remove duplicated create method
This commit is contained in:
parent
11bb67c3c6
commit
b18d1c2786
1 changed files with 0 additions and 10 deletions
|
@ -26,16 +26,6 @@ module Gitlab
|
|||
end
|
||||
end
|
||||
|
||||
# overloaded from Gitlab::Oauth::User
|
||||
# TODO: it's messy, needs cleanup, less complexity
|
||||
def create(auth_hash)
|
||||
ldap_user = new(auth_hash)
|
||||
# first try to find the user based on the returned email address
|
||||
|
||||
# if the user isn't found by an exact email match, use oauth methods
|
||||
ldap_user.save_and_trigger_callbacks
|
||||
end
|
||||
|
||||
def authenticate(login, password)
|
||||
# Check user against LDAP backend if user is not authenticated
|
||||
# Only check with valid login and password to prevent anonymous bind results
|
||||
|
|
Loading…
Reference in a new issue