Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

Commit

Permalink
Fixed register function
Browse files Browse the repository at this point in the history
  • Loading branch information
mgp25 committed Jul 25, 2015
1 parent 57eb6bb commit 1020c44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/snapchat.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 1020c44

Please sign in to comment.