Ejemplo n.º 1
0
 def authenticate(self):
     from authentication.models import Token
     self.user = Token.authenticate(self.token)
     if self.user:
         self.on_authenticated()
     else:
         self.send_message(pb.TxTokenInvalid())
         return