mirror of
https://github.com/RobThree/TwoFactorAuth.git
synced 2026-08-19 19:52:43 +00:00
Update README.md
This commit is contained in:
@@ -98,14 +98,13 @@ Ok, so now the code has been verified and found to be correct. Now we can store
|
||||
|
||||
Simple as 1-2-3.
|
||||
|
||||
All we need to remember is 4 methods and a constructor:
|
||||
All we need is 3 methods and a constructor:
|
||||
|
||||
````php
|
||||
__construct($issuer=null, $digits=6, $period=30, $algorithm='sha1', $qrcodeprovider=null, $rngprovider=null)
|
||||
createSecret($bits = 80, $requirecryptosecure = true)
|
||||
getCode($secret, $time = null)
|
||||
verifyCode($secret, $code, $discrepancy = 1, $time = null)
|
||||
getQRCodeImageAsDataUri($label, $secret, $size = 200)
|
||||
verifyCode($secret, $code, $discrepancy = 1, $time = null)
|
||||
````
|
||||
|
||||
### QR-code providers
|
||||
|
||||
Reference in New Issue
Block a user