fixed issue with namespace AND fixed issue #649

This commit is contained in:
Jonathan Labreuille
2016-10-06 12:53:18 +02:00
parent b9745b555a
commit 4402f826c3
22 changed files with 44 additions and 54 deletions

View File

@ -150,7 +150,7 @@ class Subscriber extends Model {
}
static function verifyToken($email, $token) {
return (self::generateToken($email) === $token);
return hash_equals(self::generateToken($email), $token);
}
static function subscribe($subscriber_data = array(), $segment_ids = array()) {