MCPcopy Create free account
hub / github.com/gogs/gogs / MailResendCacheKey

Function MailResendCacheKey

internal/userutil/userutil.go:135–137  ·  view source on GitHub ↗

MailResendCacheKey returns the key used for caching mail resend.

(userID int64)

Source from the content-addressed store, hash-verified

133
134// MailResendCacheKey returns the key used for caching mail resend.
135func MailResendCacheKey(userID int64) string {
136 return fmt.Sprintf("mailResend::%d", userID)
137}
138
139// TwoFactorCacheKey returns the key used for caching two factor passcode.
140func TwoFactorCacheKey(userID int64, passcode string) string {

Callers 4

SignUpPostFunction · 0.92
ActivateFunction · 0.92
ForgotPasswdPostFunction · 0.92
TestMailResendCacheKeyFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestMailResendCacheKeyFunction · 0.68