mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-18 01:06:39 +08:00
fix: fix bug for mobile verify code function not available in register page
This commit is contained in:
parent
7eb69c1ad7
commit
ae79c34508
@ -175,6 +175,7 @@ func authorizeMiddleware(s *AppServer) gin.HandlerFunc {
|
|||||||
if c.Request.URL.Path == "/api/user/login" ||
|
if c.Request.URL.Path == "/api/user/login" ||
|
||||||
c.Request.URL.Path == "/api/admin/login" ||
|
c.Request.URL.Path == "/api/admin/login" ||
|
||||||
c.Request.URL.Path == "/api/user/register" ||
|
c.Request.URL.Path == "/api/user/register" ||
|
||||||
|
c.Request.URL.Path == "/api/sms/status" ||
|
||||||
strings.HasPrefix(c.Request.URL.Path, "/api/verify/") ||
|
strings.HasPrefix(c.Request.URL.Path, "/api/verify/") ||
|
||||||
strings.HasPrefix(c.Request.URL.Path, "/static/") ||
|
strings.HasPrefix(c.Request.URL.Path, "/static/") ||
|
||||||
c.Request.URL.Path == "/api/admin/config/get" {
|
c.Request.URL.Path == "/api/admin/config/get" {
|
||||||
|
@ -139,6 +139,9 @@ const register = function () {
|
|||||||
return ElMessage.error('两次输入密码不一致');
|
return ElMessage.error('两次输入密码不一致');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (formData.value.code === '') {
|
||||||
|
formData.value.code = 0
|
||||||
|
}
|
||||||
httpPost('/api/user/register', formData.value).then(() => {
|
httpPost('/api/user/register', formData.value).then(() => {
|
||||||
ElMessage.success({"message": "注册成功,即将跳转到登录页...", onClose: () => router.push("login")})
|
ElMessage.success({"message": "注册成功,即将跳转到登录页...", onClose: () => router.push("login")})
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user