aboutsummaryrefslogtreecommitdiff
path: root/pkg/tool/tool.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-05-17 18:37:25 -0400
committerUnknwon <u@gogs.io>2017-05-17 18:37:25 -0400
commita11044f78954f5c173d686cd46833386cc43bc16 (patch)
treef5bbddad3d1a79f9fa7e37c70c05f5cdede4a833 /pkg/tool/tool.go
parent4b2bf41381a64e17821074346f0e6e1b37a8e809 (diff)
locale: sync from Crowdin
Diffstat (limited to 'pkg/tool/tool.go')
-rw-r--r--pkg/tool/tool.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/tool/tool.go b/pkg/tool/tool.go
index 6936ca7d..1737491e 100644
--- a/pkg/tool/tool.go
+++ b/pkg/tool/tool.go
@@ -146,8 +146,8 @@ func VerifyTimeLimitCode(data string, minutes int, code string) bool {
const TIME_LIMIT_CODE_LENGTH = 12 + 6 + 40
-// create a time limit code
-// code format: 12 length date time string + 6 minutes string + 40 sha1 encoded string
+// CreateTimeLimitCode generates a time limit code based on given input data.
+// Format: 12 length date time string + 6 minutes string + 40 sha1 encoded string
func CreateTimeLimitCode(data string, minutes int, startInf interface{}) string {
format := "200601021504"