We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8732a8f commit e350f6bCopy full SHA for e350f6b
src/snapchat.php
@@ -105,8 +105,9 @@ public function login($username, $password) {
105
)
106
);
107
108
- // If 'logged' is true (aka successful login), set the auth_token
+ // If 'logged' is true (aka successful login), set the username and auth_token
109
if ($result->logged) {
110
+ $this->username = $result->username;
111
$this->auth_token = $result->auth_token;
112
}
113
@@ -1177,4 +1178,4 @@ public function updateEmail($email) {
1177
1178
return isset($result->param) && $result->param == $email;
1179
1180
-}
1181
+}
0 commit comments