Skip to content

Commit 75dadca

Browse files
Update snapchat.php
1 parent 6b282b6 commit 75dadca

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/snapchat.php

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,15 @@ public function login($username, $password) {
120120
}
121121
}
122122

123+
/**
124+
* Checks if the user is logged in and has a valid auth token.
125+
*
126+
* @return TRUE if the user is verified, FALSE otherwise
127+
*/
128+
public function userVerified() {
129+
return ($this->auth_token && $this->username);
130+
}
131+
123132
/**
124133
* Logs out the current user.
125134
*
@@ -217,17 +226,6 @@ public function register($username, $password, $email, $birthday) {
217226
return $result;
218227
}
219228

220-
/**
221-
* Checks if the user is logged in and has a valid auth token.
222-
*
223-
* @return TRUE if the user is verified, FALSE otherwise
224-
*/
225-
public function userVerified()
226-
{
227-
return ($this->auth_token && $this->username);
228-
}
229-
230-
231229
/**
232230
* Retrieves general user, friend, and snap updates.
233231
*

0 commit comments

Comments
 (0)