MCPcopy Index your code
hub / github.com/TruthHun/BookStack / indexWithPassword

Method indexWithPassword

controllers/DocumentController.go:215–228  ·  view source on GitHub ↗

文档首页.

()

Source from the content-addressed store, hash-verified

213
214// 文档首页.
215func (this *DocumentController) indexWithPassword() {
216 identify := this.Ctx.Input.Param(":key")
217 if identify == "" {
218 this.Abort("404")
219 }
220 this.TplName = "document/read-with-password.html"
221 this.GetSeoByPage("book_info", map[string]string{
222 "title": "密码访问",
223 "keywords": "密码访问",
224 "description": "密码访问",
225 })
226 this.Data["ShowErrTips"] = this.GetString("err") != ""
227 this.Data["Identify"] = identify
228}
229
230// 阅读文档.
231func (this *DocumentController) Read() {

Callers 1

IndexMethod · 0.95

Calls 1

GetSeoByPageMethod · 0.80

Tested by

no test coverage detected