mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-18 00:16:37 +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 {
|
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user