Commit 7b23b550 authored by Stan Hu's avatar Stan Hu

Restrict to confirmed users and allow memoization of unkonwn e-mails

parent a5722c37
...@@ -64,8 +64,8 @@ module Gitlab ...@@ -64,8 +64,8 @@ module Gitlab
return users[email] if users.key?(email) return users[email] if users.key?(email)
user = User.find_by_any_email(email) user = User.find_by_any_email(email, confirmed: true)
users[email] = user&.id if user users[email] = user&.id
user&.id user&.id
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment