刷新验证码
This commit is contained in:
7
controllers/controller.go
Normal file
7
controllers/controller.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package controllers
|
||||
|
||||
import "git.rosy.net.cn/jx-print/globals"
|
||||
|
||||
func init() {
|
||||
globals.SugarLogger.Debugf("test init ...")
|
||||
}
|
||||
10
controllers/user_controller.go
Normal file
10
controllers/user_controller.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/jx-print/utils"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func RefreshCode(c *gin.Context){
|
||||
utils.Captcha(c,4)
|
||||
}
|
||||
Reference in New Issue
Block a user