ncauth_main.py 282 Bytes
import tornado.escape
import ncauth.base
class ncauth_main(ncauth_base):
      def get(self):
        if not self.current_user:
            self.redirect("/login")
            return
        name = tornado.escape.xhtml_escape(self.current_user)
        self.write("Hallo, " + name)