From 49b7b4e6e52a8a195ac164615983da8d6b012c6a Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@osticket.com>
Date: Mon, 11 Jul 2016 19:40:59 +0000
Subject: [PATCH] ticket: Support lookups by number and email

---
 login.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/login.php b/login.php
index 4c7f3b6c1..f19c1a3ec 100644
--- a/login.php
+++ b/login.php
@@ -86,7 +86,7 @@ elseif ($_POST && isset($_POST['lticket'])) {
             Http::redirect('tickets.php');
 
         // This will succeed as it is checked in the authentication backend
-        $ticket = Ticket::lookupByNumber($_POST['lticket']);
+        $ticket = Ticket::lookupByNumber($_POST['lticket'], $_POST['lemail']);
 
         // We're using authentication backend so we can guard aganist brute
         // force attempts (which doesn't buy much since the link is emailed)
-- 
GitLab