Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Code Validation

Đorđe Jocić edited this page Jan 7, 2019 · 2 revisions

Validating provided 6-digit codes is extremely simple, you just need to instantiate the validator and utilize the "isCodeValid" method.

$validator = new Jocic\GoogleAuthenticator\Validator();
if (!$validator->isCodeValid($code, $account))
{
 // Handle Invalid Code
}
Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /