mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-23 02:26:36 +08:00
feat: 限制邮箱别名
This commit is contained in:
parent
1cff3c100a
commit
4641d44615
@ -147,7 +147,7 @@ func SendEmailVerification(c *gin.Context) {
|
||||
}
|
||||
}
|
||||
if common.EmailAliasRestrictionEnabled {
|
||||
containsSpecialSymbols := strings.Contains(localPart, "+") || strings.Count(localPart, ".") > 1
|
||||
containsSpecialSymbols := strings.Contains(localPart, "+") || strings.Contains(localPart, ".")
|
||||
if containsSpecialSymbols {
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"success": false,
|
||||
|
Loading…
Reference in New Issue
Block a user