v1.10.1 updates

This commit is contained in:
Manish Verma
2018-09-18 18:25:25 +05:30
committed by Manish Verma
parent 190f6500c2
commit eba2c987a2
3 changed files with 29 additions and 3 deletions

View File

@@ -2109,8 +2109,7 @@ class TicketController extends Controller
]
);
$user = User::where('email', '=', $email)->first();
$count = count($user);
if ($count === 1) {
if ($user) {
return 0;
} elseif ($validator->fails()) {
return 2;