Commit 346ed4ca by 1808837298@qq.com

fix: email whitelist check

parent 40a6db67
...@@ -135,9 +135,10 @@ func SendEmailVerification(c *gin.Context) { ...@@ -135,9 +135,10 @@ func SendEmailVerification(c *gin.Context) {
} }
if allowed && !containsSpecialSymbols { if allowed && !containsSpecialSymbols {
c.JSON(http.StatusOK, gin.H{ c.JSON(http.StatusOK, gin.H{
"success": true, "success": false,
"message": "Your email address is allowed.", "message": "Your email address is allowed.",
}) })
return
} else { } else {
c.JSON(http.StatusOK, gin.H{ c.JSON(http.StatusOK, gin.H{
"success": false, "success": false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment