/** * Decodes a token generated with encodeToken and returns an array of options * * @param string $token token options * @param bool $url_decode should it URL decode the token true by default * @return array Array of options for the authentication token */ function _decodeToken($token) { return (array)Ak::fromJson(Ak::blowfishDecrypt(base64_decode($token), Ak::getSetting(AK_DEFAULT_ADMIN_SETTINGS, 'token_key'))); }
/** * Decodes a token generated with encodeToken and returns an array of options * * @param string $token token options * @param bool $url_decode should it URL decode the token true by default * @return array Array of options for the authentication token */ function _decodeToken($token) { return (array) Ak::fromJson(Ak::blowfishDecrypt(base64_decode($token), Ak::getSetting('admin', 'token_key'))); }
/** * Decodes a token generated with encodeToken and returns an array of options * * @param string $token token options * @param bool $url_decode should it URL decode the token true by default * @return array Array of options for the authentication token */ static function decodeToken($token) { return (array) Ak::fromJson(Ak::blowfishDecrypt(base64_decode($token), Ak::getSetting(self::getSettingsNamespace(), 'token_key'))); }