update final log

This commit is contained in:
2023-12-12 14:35:12 +07:00
parent 91b7a10f86
commit e76c480ce9
59 changed files with 5524 additions and 583 deletions

View File

@@ -23,6 +23,7 @@ class AuthController extends Controller
'email' => $request->email,
'password' => $request->password
];
$validator = Validator::make($request->all(), [
'email' => 'required|email',
'password' => 'required'
@@ -38,7 +39,7 @@ class AuthController extends Controller
}
else
{
$user = User::where('email', $request->email)->first();
$user = User::with('getOrganization.organization')->where('email', $request->email)->first();
if (!$user) {
return ApiResponse::apiResponse('Not Found', $data, trans('message.not_found'), 404);
}