function GoogleAuthenticator::setUserKey in Google Authenticator login 6
Same name and namespace in other branches
- 7 ga4php.php \GoogleAuthenticator::setUserKey()
File
- ./
ga4php.php, line 131
Class
Code
function setUserKey($username, $key) {
// consider scrapping this
$token = $this
->internalGetData($username);
$token["tokenkey"] = $key;
$this
->internalPutData($username, $token);
// TODO error checking
return true;
}