Commit 1a0c5438 authored by Albert Ting's avatar Albert Ting Committed by David Lawrence

Bug 521536 - Allow user search by external id when using env authentication

r=dkl,a=dkl
parent 3fb30abd
...@@ -132,6 +132,8 @@ if ($action eq 'search') { ...@@ -132,6 +132,8 @@ if ($action eq 'search') {
$expr = 'profiles.email'; $expr = 'profiles.email';
} elsif ($matchvalue eq 'realname') { } elsif ($matchvalue eq 'realname') {
$expr = "profiles.realname"; $expr = "profiles.realname";
} elsif ($matchvalue eq 'extern_id') {
$expr = "profiles.extern_id";
} else { } else {
$expr = "profiles.login_name"; $expr = "profiles.login_name";
} }
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
<option value="email">email address</option> <option value="email">email address</option>
<option value="realname">real name</option> <option value="realname">real name</option>
<option value="userid">user id</option> <option value="userid">user id</option>
<option value="extern_id">external id</option>
</select> </select>
<label for="matchstr">matching</label> <label for="matchstr">matching</label>
<input size="32" name="matchstr" id="matchstr" autofocus> <input size="32" name="matchstr" id="matchstr" autofocus>
......
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