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