Skip to content

Commit

Permalink
Merge pull request #10917 from nanaya/bypass-verify-token
Browse files Browse the repository at this point in the history
Apply verification bypass option for oauth tokens
  • Loading branch information
notbakaneko authored Jan 30, 2024
2 parents 04e4adb + 736d557 commit baaac81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Models/OAuth/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ private function setVerifiedState(): void
{
// client credential doesn't have user attached and auth code is
// already verified during grant process
$this->verified ??= $this->user === null || !$this->client->password_client;
$this->verified ??= $GLOBALS['cfg']['osu']['user']['bypass_verification']
|| $this->user === null
|| !$this->client->password_client;
}
}

0 comments on commit baaac81

Please sign in to comment.