Explorar o código

fix: email whitelist check

1808837298@qq.com hai 1 ano
pai
achega
9025756b56
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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,