-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
57 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,12 +45,14 @@ type EmailConfig struct { | |
Enable bool `toml:"enable" comment:"注册验证邮件,且允许使用邮箱找回账号"` | ||
Smtp []SmtpUser `toml:"smtp"` | ||
AllowDomain []string `toml:"allow_domain" comment:"允许用于注册的邮箱域名,留空则允许全部"` | ||
EmailReg string `toml:"email_reg" comment:"邮箱正则,留空则不处理,如 ^[0-9][email protected]$|^[^+\\.A-Z][email protected]$"` | ||
EmailRegMsg string `toml:"email_reg_msg" comment:"不满足要求时的提示信息"` | ||
} | ||
|
||
type SmtpUser struct { | ||
Host string `toml:"host"` | ||
Port int `toml:"port"` | ||
SSL bool `toml:"SSL"` | ||
SSL bool `toml:"SSL" comment:"启用 ssl"` | ||
Name string `toml:"name"` | ||
Pass string `toml:"password"` | ||
} | ||
|
@@ -82,5 +84,9 @@ func Default() Config { | |
WebBaseUrl: "", | ||
ServerName: "没有设置名字", | ||
Captcha: Captcha{}, | ||
Email: EmailConfig{ | ||
Smtp: []SmtpUser{}, | ||
AllowDomain: []string{}, | ||
}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters