Commit 775975b4 authored by nico de ceulaer's avatar nico de ceulaer
Browse files

ensure also alternative email addresses are used when looking up user

parent a522dbf3b073
......@@ -72,7 +72,7 @@
if user_or_email.is_a?(User)
user = user_or_email
user = User.find_by(email: user_or_email.downcase)
user = User.find_by_any_email(user_or_email.downcase)
if user
Supports Markdown
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