You are here

function GoogleAuthenticator::createEmptyData in Google Authenticator login 6

Same name and namespace in other branches
  1. 7 ga4php.php \GoogleAuthenticator::createEmptyData()
2 calls to GoogleAuthenticator::createEmptyData()
ga_loginGA::createEmptyData in ./ga_login.class.php
GoogleAuthenticator::internalGetData in ./ga4php.php
1 method overrides GoogleAuthenticator::createEmptyData()
ga_loginGA::createEmptyData in ./ga_login.class.php

File

./ga4php.php, line 29

Class

GoogleAuthenticator

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;
}