1808837298@qq.com 1 год назад
Родитель
Сommit
9025756b56
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      controller/misc.go

+ 2 - 1
controller/misc.go

@@ -135,9 +135,10 @@ func SendEmailVerification(c *gin.Context) {
 		}
 		if allowed && !containsSpecialSymbols {
 			c.JSON(http.StatusOK, gin.H{
-				"success": true,
+				"success": false,
 				"message": "Your email address is allowed.",
 			})
+			return
 		} else {
 			c.JSON(http.StatusOK, gin.H{
 				"success": false,