Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions app/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,11 @@ public function emitOTP()
throw new ValidationException("empty username.");
}

$user = $this->auth_service->getUserByUsername($username);

if (!$user->isActive())
throw new ValidationException("user is not active.");
Comment thread
romanetar marked this conversation as resolved.
Outdated

$client = null;

// check if we have a former oauth2 request
Expand Down
Loading