测试:系统设置

This commit is contained in:
undefined committed 2020-05-19 19:13:15 +08:00
1 parent 747cb1b9b5
commit 0304cd808f
12 files changed
+147 -88

No files matched your search

+2 -2
View File
@@ -39,7 +39,7 @@ class UserLogoutHandler extends Handler {
}
async post() {
this.session = { uid: 1 };
this.session.uid = 1;
}
}
@@ -61,7 +61,7 @@ class UserRegisterHandler extends Handler {
{ mail },
);
if (await system.get('smtp.user')) {
const m = await this.renderHTML('user_register_mail', { url: `/register/${t}` });
const m = await this.renderHTML('user_register_mail', { url: `/register/${t[0]}` });
await sendMail(mail, 'Sign Up', 'user_register_mail', m);
this.response.template = 'user_register_mail_sent.html';
} else {