mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: also disable smtp if smtp.user doesn't exist
This commit is contained in:
1 parent
bc4d424abf
commit
cd4ada0845
3 files changed
+3
-3
No files matched your search
@@ -80,7 +80,7 @@ export class UserRegisterHandler extends Handler {
|
||||
system.get('session.unsaved_expire_seconds'),
|
||||
{ mail },
|
||||
);
|
||||
if (system.get('smtp.verify')) {
|
||||
if (system.get('smtp.verify') && system.get('smtp.user')) {
|
||||
const m = await this.renderHTML('user_register_mail.html', {
|
||||
path: `register/${t[0]}`,
|
||||
url_prefix: (this.domain.host || [])[0] || system.get('server.url'),
|
||||
|
||||
Reference in new issue
Block a user