Token_issue_fix

This commit is contained in:
Manish Verma
2017-04-30 20:23:27 +05:30
parent 6681553c83
commit ff970bc41e
3 changed files with 17 additions and 1 deletions

View File

@@ -1802,6 +1802,13 @@ class TicketController extends Controller
{
$name = Input::get('name');
$email = Input::get('email');
$validator = \Validator::make(
['email' => $email,'name' => $name, ],
['email' => 'required|email',]
);
if ($validator->fails()) {
return "Invalid email address.";
}
$ticket_id = Input::get('ticket_id');
$user_search = User::where('email', '=', $email)->first();
if (isset($user_serach)) {