Skip to content

Commit e350f6b

Browse files
author
Jeffrey
committed
Updating username added
I was wrong about the username not needing to be set by the result from Snapchat, sorry.
1 parent 8732a8f commit e350f6b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/snapchat.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,9 @@ public function login($username, $password) {
105105
)
106106
);
107107

108-
// If 'logged' is true (aka successful login), set the auth_token
108+
// If 'logged' is true (aka successful login), set the username and auth_token
109109
if ($result->logged) {
110+
$this->username = $result->username;
110111
$this->auth_token = $result->auth_token;
111112
}
112113

@@ -1177,4 +1178,4 @@ public function updateEmail($email) {
11771178
return isset($result->param) && $result->param == $email;
11781179
}
11791180

1180-
}
1181+
}

0 commit comments

Comments
 (0)