You are here

function GoogleAuthenticator::internalPutData in Google Authenticator login 6

Same name and namespace in other branches
  1. 7 ga4php.php \GoogleAuthenticator::internalPutData()
8 calls to GoogleAuthenticator::internalPutData()
ga_loginGA::authenticateUser in ./ga_login.class.php
GoogleAuthenticator::authenticateUser in ./ga4php.php
GoogleAuthenticator::deleteUser in ./ga4php.php
GoogleAuthenticator::resyncCode in ./ga4php.php
GoogleAuthenticator::setCustomData in ./ga4php.php

... See full list

File

./ga4php.php, line 70

Class

GoogleAuthenticator

Code

function internalPutData($username, $data) {
  if ($data == "") {
    $enco = "";
  }
  else {

    // $data['user'] = $username;
    $enco = base64_encode(serialize($data));
  }
  return $this
    ->putData($username, $enco);
}