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

Method GetByToken

models/api.go:68–71  ·  view source on GitHub ↗
(token string)

Source from the content-addressed store, hash-verified

66}
67
68func (m *Auth) GetByToken(token string) (auth Auth) {
69 orm.NewOrm().QueryTable(m).Filter("token", token).One(&auth)
70 return
71}
72
73func (m *Auth) DeleteByToken(token string) {
74 orm.NewOrm().QueryTable(m).Filter("token", token).Delete()

Callers 2

isLoginMethod · 0.80
PrepareMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected