You are here

public function GoogleAuthenticator::internalPutData in Google Authenticator login 7

Same name and namespace in other branches
  1. 6 ga4php.php \GoogleAuthenticator::internalPutData()

Store data.

8 calls to GoogleAuthenticator::internalPutData()
GALoginGA::authenticateUser in ./ga_login.class.php
Authenticate a user.
GoogleAuthenticator::authenticateUser in ./ga4php.php
Authenticate a user using a code.
GoogleAuthenticator::deleteUser in ./ga4php.php
Delete a user.
GoogleAuthenticator::resyncCode in ./ga4php.php
Resync codes.
GoogleAuthenticator::setCustomData in ./ga4php.php
Set custom data.

... See full list

File

./ga4php.php, line 86
Abstract GoogleAuthenticator class.

Class

GoogleAuthenticator
@file Abstract GoogleAuthenticator class.

Code

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

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