summaryrefslogtreecommitdiff
path: root/lib/gitlab/ldap
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-06-22 11:27:37 +0200
committerJames Lopez <james@jameslopez.es>2017-06-23 11:41:42 +0200
commitc9fd3dc42c462ce2551f6a9630035b4df00bc366 (patch)
tree5e4bd5226fff9fa00ba9db17056d21a59db527d7 /lib/gitlab/ldap
parent785cbb79e255c8369ca5eb916207304f39d188ad (diff)
downloadgitlab-ce-c9fd3dc42c462ce2551f6a9630035b4df00bc366.tar.gz
more refactoring based on feedback
Diffstat (limited to 'lib/gitlab/ldap')
-rw-r--r--lib/gitlab/ldap/access.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gitlab/ldap/access.rb b/lib/gitlab/ldap/access.rb
index 7430db828a3..998a8a7eb35 100644
--- a/lib/gitlab/ldap/access.rb
+++ b/lib/gitlab/ldap/access.rb
@@ -16,8 +16,7 @@ module Gitlab
def self.allowed?(user)
self.open(user) do |access|
if access.allowed?
- user.last_credential_check_at = Time.now
- Users::UpdateService.new(user, user).execute
+ Users::UpdateService.new(user, user, last_credential_check_a: Time.now).execute
true
else