从网站创建 Trac 票证
我的网站访问者是否可以从我的网站创建 Trac 票证,而不需要登录 Trac 系统?例如:我的网站上有一个反馈表,该表将表单信息发送到电子邮件地址。我想做的是让该表单与 Trac 进行通信,并在每次提交表单时动态创建一个票证,而不是发送电子邮件。
我查看了 Trac 上“New Ticket”页面的页面源。看起来表单有一个名为“__FORM_TOKEN”的隐藏输入字段,并为该字段的值生成模糊数据,这些数据似乎是随机生成的。我猜这是一种安全措施(可能是为了阻止用户尝试跨域通信?)
简单地将表单的操作字段和适当的隐藏字段复制到我的网站表单上并不能解决问题。
我正在做的事情可能吗? Trac 似乎不适合这种用途。谢谢。
is it possible for my website visitors to create Trac tickets from my website rather than being logged into the Trac system? For example: I have a feedback form on my website that sends the form information to an e-mail address. What I would like to do is have that form communicate with Trac and dynamically create a ticket with each form submission, instead of sending an e-mail.
I've taken a look at the page source of the "New Ticket" page on Trac. It looks like the form has a hidden input field with the name "__FORM_TOKEN" and generates obscure data for the field's value that seems to be generated randomly. I'm guessing this is a security measure (probably to block users from attempting cross-domain communication?)
Simply copying the form's action field with the appropriate hidden fields onto my website form doesn't do the trick.
Is what I am doing even possible? Trac doesn't seem to serve this kind of purpose. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以尝试 email2trac 将电子邮件发送到 Trac 以创建票证。
You could try email2trac to have the e-mail sent to Trac to create the ticket.
当您将 TICKET_CREATE 权限分配给匿名组时,每个人都可以创建票证而无需登录。
When you assign the TICKET_CREATE permission to the anonymous group, everyone can create tickets with no need to login.