def POST_reg(self, dest, *a, **kw): ApiController._handle_register(self, *a, **kw) c.render_style = "html" response.content_type = "text/html" if c.errors: return LoginPage(user_reg = request.POST.get('user'), dest = dest).render() if hsts_eligible(): dest = hsts_modify_redirect(dest) return self.redirect(dest)
def POST_reg(self, dest, *a, **kw): ApiController._handle_register(self, *a, **kw) c.render_style = "html" response.content_type = "text/html" if c.errors: return LoginPage(user_reg=request.POST.get('user'), dest=dest).render() if hsts_eligible(): dest = hsts_modify_redirect(dest) return self.redirect(dest)