Skip to content

Commit

Permalink
respect coding standards, rector
Browse files Browse the repository at this point in the history
  • Loading branch information
warcooft committed Oct 6, 2024
1 parent cddeb24 commit 1b88775
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Controllers/OAuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace Datamweb\ShieldOAuth\Controllers;

use Throwable;
use App\Controllers\BaseController;
use CodeIgniter\HTTP\RedirectResponse;
use CodeIgniter\Shield\Entities\User;
Expand Down Expand Up @@ -108,8 +109,8 @@ public function callBack(): RedirectResponse

try {
$userid = $users->insert($entitiesUser);
} catch (\Throwable $th) {
//If the insert fails due to a duplicate key entry, see the log message for audit.
} catch (Throwable $th) {
// If the insert fails due to a duplicate key entry, see the log message for audit.
return redirect()->to(config('Auth')->logoutRedirect())->with('error', lang('ShieldOAuthLang.Callback.account_disabled'));
}

Expand Down

0 comments on commit 1b88775

Please # to comment.