Skip to content
Snippets Groups Projects
Commit 49b7b4e6 authored by Peter Rotich's avatar Peter Rotich
Browse files

ticket: Support lookups by number and email

parent b15ed51a
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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