From aa65ff076ee25b22b7f4ae008ceca2210bfce64a Mon Sep 17 00:00:00 2001 From: romanetar Date: Wed, 8 Oct 2025 19:55:20 +0200 Subject: [PATCH] fix: manage user not found case Signed-off-by: romanetar --- app/Http/Controllers/UserController.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 7b4bc22b..69368891 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -312,18 +312,6 @@ public function emitOTP() throw new ValidationException("empty send param."); } - $user = $this->auth_service->getUserByUsername($username); - - if (!$user->isActive()) - throw new ValidationException - ( - sprintf - ( - "Your user account is currently locked. Please contact support for further assistance.", - Config::get("app.help_email") - ) - ); - $client = null; // check if we have a former oauth2 request