PHP Class CakeDC\Users\Controller\Component\GoogleAuthenticatorComponent

Inheritance: extends Cake\Controller\Component
Afficher le fichier Open project: CakeDC/users

Méthodes publiques

Свойство Type Description
$tfa RobThree\Auth\TwoFactorAuth

Méthodes publiques

Méthode Description
createSecret ( ) : base32 createSecret
getQRCodeImageAsDataUri ( $issuer, $secret ) : string getQRCodeImageAsDataUri
initialize ( array $config ) : void initialize method
verifyCode ( string $secret, string $code ) : boolean verifyCode Verifying tfa code with shared secret

Method Details

createSecret() public méthode

createSecret
public createSecret ( ) : base32
Résultat base32 shared secret stored in users table

getQRCodeImageAsDataUri() public méthode

getQRCodeImageAsDataUri
public getQRCodeImageAsDataUri ( $issuer, $secret ) : string
Résultat string base64 string containing QR code for shared secret

initialize() public méthode

initialize method
public initialize ( array $config ) : void
$config array The config data
Résultat void

verifyCode() public méthode

verifyCode Verifying tfa code with shared secret
public verifyCode ( string $secret, string $code ) : boolean
$secret string of the user
$code string from verification form
Résultat boolean

Property Details

$tfa public_oe property

public TwoFactorAuth,RobThree\Auth $tfa
Résultat RobThree\Auth\TwoFactorAuth