summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/wordpress-mobile-pack/inc/class-wmp-tokens.php')
-rwxr-xr-xplugins/wordpress-mobile-pack/inc/class-wmp-tokens.php12
1 files changed, 1 insertions, 11 deletions
diff --git a/plugins/wordpress-mobile-pack/inc/class-wmp-tokens.php b/plugins/wordpress-mobile-pack/inc/class-wmp-tokens.php
index bc72281e..480113df 100755
--- a/plugins/wordpress-mobile-pack/inc/class-wmp-tokens.php
+++ b/plugins/wordpress-mobile-pack/inc/class-wmp-tokens.php
@@ -39,11 +39,10 @@ if ( ! class_exists( 'WMobilePack_Tokens' ) ) {
* The method returns true if the token is valid and false otherwise.
*
* @param $token - string
- * @param $webapp_id - The webapp's id (from Premium settings)
* @return bool
*
*/
- public static function check_token($token, $webapp_id = false)
+ public static function check_token($token)
{
if (base64_decode($token,true)){
@@ -67,15 +66,6 @@ if ( ! class_exists( 'WMobilePack_Tokens' ) ) {
// check encoded domain
if ($arrParams[0] == $generated_url)
return true;
-
- // get the generated encoded webappid
- if ($webapp_id !== false) {
-
- $generated_id = md5(md5($webapp_id));
-
- if ($arrParams[0] == $generated_id)
- return true;
- }
}
}
}