Pass strings for deletion of user sessions, closes #906

This commit is contained in:
Dane Everitt 2018-02-03 12:18:18 -06:00
parent 47f1c9c4ec
commit ffa09d81e2
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 13 additions and 9 deletions

View file

@ -32,11 +32,11 @@ class SessionRepository extends EloquentRepository implements SessionRepositoryI
/**
* Delete a session for a given user.
*
* @param int $user
* @param int $session
* @param int $user
* @param string $session
* @return null|int
*/
public function deleteUserSession(int $user, int $session)
public function deleteUserSession(int $user, string $session)
{
return $this->getBuilder()->where('user_id', $user)->where('id', $session)->delete();
}