Browse files

name mistake: TOKET_STORAGE_SECRET => TOKEN_STORAGE_SECRET

  • Loading branch information...
1 parent 71709e4 commit 62ba228cc04bc0e004426cc2bf3fbf4a6910b7aa @melnikovdv committed Nov 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/yamoney/ym.php
View
2 src/yamoney/ym.php
@@ -367,7 +367,7 @@ public function restoreToken($key) {
$tokenArray = json_decode(file_get_contents(self::TOKEN_STORAGE_FILE), TRUE);
if (array_key_exists($key, $tokenArray)) {
$aes = new Crypt_AES();
- $aes->setKey(self::TOKET_STORAGE_SECRET);
+ $aes->setKey(self::TOKEN_STORAGE_SECRET);
$decryptedToken = $aes->decrypt(base64_decode($tokenArray[$key]));
return $decryptedToken;
} else

0 comments on commit 62ba228

Please sign in to comment.