MCPcopy
hub / github.com/tinode/chat / ResetSecret

Method ResetSecret

server/validate/validator.go:44–44  ·  view source on GitHub ↗

ResetSecret sends a message with instructions for resetting an authentication secret. cred: address to use for the message. scheme: authentication scheme being reset. lang: human language as reported in the session. tmpToken: temporary authentication token params: authentication params.

(cred, scheme, lang string, tmpToken []byte, params map[string]any)

Source from the content-addressed store, hash-verified

42 // tmpToken: temporary authentication token
43 // params: authentication params.
44 ResetSecret(cred, scheme, lang string, tmpToken []byte, params map[string]any) error
45
46 // Check checks validity of user's response.
47 // Returns the value of validated credential on success.

Callers 1

authSecretResetMethod · 0.65

Implementers 2

validatorserver/validate/email/validate.go
validatorserver/validate/tel/validate.go

Calls

no outgoing calls

Tested by

no test coverage detected