summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-04-11 17:56:45 +0300
committerValery Sizov <vsv2711@gmail.com>2015-04-11 17:56:45 +0300
commit8666f497ff13c100f6cd2339971e430dbf05470f (patch)
treeac54df95998d2f9d67764171ad29255af5d1b532 /app/models
parent24d139ba971cf61a4b7a01031c4c57bcba29b172 (diff)
downloadgitlab-ce-8666f497ff13c100f6cd2339971e430dbf05470f.tar.gz
fix ldap identities
Diffstat (limited to 'app/models')
-rw-r--r--app/models/identity.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/identity.rb b/app/models/identity.rb
index 440fcd0d052..756d19adec7 100644
--- a/app/models/identity.rb
+++ b/app/models/identity.rb
@@ -15,4 +15,5 @@ class Identity < ActiveRecord::Base
belongs_to :user
validates :extern_uid, allow_blank: true, uniqueness: { scope: :provider }
+ validates :user_id, uniqueness: { scope: :provider }
end