From 9025756b56f8cc6d92cf1a1f8d27297dbcead828 Mon Sep 17 00:00:00 2001 From: "1808837298@qq.com" <1808837298@qq.com> Date: Thu, 4 Apr 2024 12:33:11 +0800 Subject: [PATCH] fix: email whitelist check --- controller/misc.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controller/misc.go b/controller/misc.go index 630ad93..51b541f 100644 --- a/controller/misc.go +++ b/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,