From 1020c441ee16773c2869d220e968dc537edd77ad Mon Sep 17 00:00:00 2001 From: mgp25 Date: Sat, 25 Jul 2015 10:21:05 +0200 Subject: [PATCH] Fixed register function --- src/snapchat.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/snapchat.php b/src/snapchat.php index 3153d3b..14901a3 100644 --- a/src/snapchat.php +++ b/src/snapchat.php @@ -479,6 +479,8 @@ public function logout() public function register($username, $password, $email, $birthday, $phone_verification = FALSE, $phone_number = NULL) { $timestamp = parent::timestamp(); + $req_token = parent::hash(parent::STATIC_TOKEN, $timestamp); + $string = $this->username . "|" . $password . "|" . $timestamp . "|" . $req_token; $dtoken = $this->getDeviceToken();