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

Method GenSecret

server/auth/auth.go:265–265  ·  view source on GitHub ↗

GenSecret generates a new secret, if appropriate.

(rec *Rec)

Source from the content-addressed store, hash-verified

263
264 // GenSecret generates a new secret, if appropriate.
265 GenSecret(rec *Rec) ([]byte, time.Time, error)
266
267 // DelRecords deletes (or disables) all authentication records for the given user.
268 DelRecords(uid types.Uid) error

Callers 7

TestDispatchLoginFunction · 0.65
TestDispatchAccNewFunction · 0.65
authSecretResetMethod · 0.65
onLoginMethod · 0.65
replySetCredMethod · 0.65
replyCreateUserFunction · 0.65
replyUpdateUserFunction · 0.65

Implementers 7

authenticatorserver/auth/anon/auth_anon.go
authenticatorserver/auth/token/auth_token.go
MockAuthHandlerserver/auth/mock_auth/mock_auth.go
MockAuthHandlerMockRecorderserver/auth/mock_auth/mock_auth.go
authenticatorserver/auth/basic/auth_basic.go
authenticatorserver/auth/rest/auth_rest.go
authenticatorserver/auth/code/auth_code.go

Calls

no outgoing calls

Tested by 2

TestDispatchLoginFunction · 0.52
TestDispatchAccNewFunction · 0.52