def _login(self, credentials):
d = self.portal.login(credentials, None, IBoxReceiver)<EOL>def cbLoggedIn(xxx_todo_changeme):<EOL><INDENT>(interface, avatar, logout) = xxx_todo_changeme<EOL>self.logout = logout<EOL>self.boxReceiver = avatar<EOL>self.boxReceiver.startReceivingBoxes(self.boxSender)<EOL>return {}<EOL><DEDENT>d.addCallback(cbLoggedIn)<EOL>return d<EOL>
Actually login to our portal with the given credentials.