function GoogleAuthenticator::createEmptyData in Google Authenticator login 6
Same name and namespace in other branches
- 7 ga4php.php \GoogleAuthenticator::createEmptyData()
2 calls to GoogleAuthenticator::createEmptyData()
1 method overrides GoogleAuthenticator::createEmptyData()
File
- ./
ga4php.php, line 29
Class
Code
function createEmptyData() {
$data["tokenkey"] = "";
// the token key
$data["tokentype"] = "HOTP";
// the token type
$data["tokentimer"] = 30;
// the token timer (For totp) and not supported by ga yet
$data["tokencounter"] = 1;
// the token counter for hotp
$data["tokenalgorithm"] = "SHA1";
// the token algorithm (not supported by ga yet)
$data["user"] = "";
// a place for implementors to store their own data
return $data;
}