MCPcopy Index your code
hub / github.com/aiprodcoder/MIXAPI / GenerateVerificationCode

Function GenerateVerificationCode

common/verification.go:25–32  ·  view source on GitHub ↗
(length int)

Source from the content-addressed store, hash-verified

23var VerificationValidMinutes = 10
24
25func GenerateVerificationCode(length int) string {
26 code := uuid.New().String()
27 code = strings.Replace(code, "-", "", -1)
28 if length == 0 {
29 return code
30 }
31 return code[:length]
32}
33
34func RegisterVerificationCodeWithKey(key string, code string, purpose string) {
35 verificationMutex.Lock()

Callers 3

SendEmailVerificationFunction · 0.92
SendPasswordResetEmailFunction · 0.92
ResetPasswordFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected