phpBB

Code Changes

File: phpbb/auth/provider/oauth/token_storage.php

  Unmodified   Added   Modified   Removed
Line 184Line 184
		$sql = 'DELETE FROM ' . $this->oauth_token_table . ' 
WHERE user_id = ' . (int) $this->user->data['user_id'];


		$sql = 'DELETE FROM ' . $this->oauth_token_table . ' 
WHERE user_id = ' . (int) $this->user->data['user_id'];


		if ((int) $this->user->data['user_id'] === ANONYMOUS)

		if ((int) $this->user->data['user_id'] === ANONYMOUS && isset($this->user->data['session_id']))

		{
$sql .= " AND session_id = '" . $this->db->sql_escape($this->user->data['session_id']) . "'";
}

		{
$sql .= " AND session_id = '" . $this->db->sql_escape($this->user->data['session_id']) . "'";
}