Skip to content
Snippets Groups Projects
Unverified Commit b5b58e75 authored by Andrej Shadura's avatar Andrej Shadura
Browse files

Allow looking up users by an email address

parent 72d7191b
No related branches found
No related tags found
1 merge request!23Allow looking up users by an email address
Pipeline #29749 passed
......@@ -13,6 +13,8 @@ class PersonController < ApplicationController
def show
if params[:prefix]
@list = User.where("login LIKE ?", params[:prefix] + '%')
elsif params[:email]
@list = User.where(:email => params[:email])
else
@list = User.all
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment