mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-17 07:56:38 +08:00
fix: email whitelist check
This commit is contained in:
parent
2ea6009954
commit
9025756b56
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user