MCPcopy Index your code
hub / github.com/writefreely/writefreely / Cookie

Method Cookie

users.go:123–127  ·  view source on GitHub ↗

Cookie strips down an AuthUser to contain only information necessary for cookies.

()

Source from the content-addressed store, hash-verified

121// Cookie strips down an AuthUser to contain only information necessary for
122// cookies.
123func (u User) Cookie() *User {
124 u.HashedPass = []byte{}
125
126 return &u
127}
128
129func (u *User) IsAdmin() bool {
130 // TODO: get this from database

Callers 5

loginFunction · 0.95
updateSettingsFunction · 0.95
loginOrFailFunction · 0.80
signupWithRegistrationFunction · 0.80
saveUserSessionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected