MCPcopy Index your code
hub / github.com/tinode/chat / authenticator

Struct authenticator

server/auth/basic/auth_basic.go:31–37  ·  view source on GitHub ↗

authenticator is the type to map authentication methods to.

Source from the content-addressed store, hash-verified

29
30// authenticator is the type to map authentication methods to.
31type authenticator struct {
32 name string
33 addToTags bool
34
35 minPasswordLength int
36 minLoginLength int
37}
38
39func (a *authenticator) checkLoginPolicy(uname string) error {
40 rlogin := []rune(uname)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected