def do_login(self, user):
this.user_id = user.pk<EOL>this.user_ddp_id = get_meteor_id(user)<EOL>this.user_sub_id = meteor_random_id()<EOL>API.do_sub(this.user_sub_id, '<STR_LIT>', silent=True)<EOL>self.update_subs(user.pk)<EOL>user_logged_in.send(<EOL>sender=user.__class__, request=this.request, user=user,<EOL>)<EOL>
Login a user.