Skip to content

Commit

Permalink
add temp debug exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
killua-eu committed Aug 27, 2023
1 parent 22c1d2d commit 62c3d9f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion glued/Controllers/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,12 @@ public function users_c1(Request $request, Response $response, array $args = [])
}
// whitelist
foreach (['handle', 'email', 'sub'] as $key) { $payload[$key] = $rp[$key]; }
$res = $this->auth->adduser($payload);
try {
$res = $this->auth->adduser($payload);
} catch (\Exception $e) {
echo $this->db->getLastQuery();
print_r($e);
}
return $response->withJson($res);
}

Expand Down

0 comments on commit 62c3d9f

Please sign in to comment.