SproutCMS

This is the code documentation for the SproutCMS project

function getQRData()

For a given set of details, return the otpauth:// url for use in a QR code

Usage

string $GoogleAuthenticator->getQRData ( string $issuer , string $user , string $host , string $secret );

Arguments

  1. string $issuer
    The name of the entity issuing the token (e.g. the website, company, etc)
  2. string $user
    Username who is receiving the token
  3. string $host
    Hostname where the token is issued
  4. string $secret
    Randomly-generated secret key, as a base32 string

Return value

  • string
    URL with the otpauth:// scheme