Skip to content

Commit

Permalink
Merge pull request #5 from GGGitBoy/fix-code
Browse files Browse the repository at this point in the history
Fix code
  • Loading branch information
Logan committed Apr 23, 2020
2 parents bf297f8 + 84baf63 commit 712a263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func sendEmail(req *restful.Request, resp *restful.Response) {
}

func GenValidateCode(width int) string {
numeric := [10]byte{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
numeric := [9]byte{1, 2, 3, 4, 5, 6, 7, 8, 9}
r := len(numeric)
rand.Seed(time.Now().UnixNano())

Expand Down

0 comments on commit 712a263

Please sign in to comment.