Skip to content

Commit aa65ff0

Browse files
committed
fix: manage user not found case
Signed-off-by: romanetar <roman_ag@hotmail.com>
1 parent 981463f commit aa65ff0

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

app/Http/Controllers/UserController.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -312,18 +312,6 @@ public function emitOTP()
312312
throw new ValidationException("empty send param.");
313313
}
314314

315-
$user = $this->auth_service->getUserByUsername($username);
316-
317-
if (!$user->isActive())
318-
throw new ValidationException
319-
(
320-
sprintf
321-
(
322-
"Your user account is currently locked. Please <a href='mailto:%s'>contact support</a> for further assistance.",
323-
Config::get("app.help_email")
324-
)
325-
);
326-
327315
$client = null;
328316

329317
// check if we have a former oauth2 request

0 commit comments

Comments
 (0)