core&ui: fix types

This commit is contained in:
undefined committed 2025-03-03 20:42:21 +08:00
1 parent 0bf3bc9abd
commit b6eaada508
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -246,7 +246,7 @@ class HomeSecurityHandler extends Handler {
uname: this.user.uname,
url_prefix: prefix.endsWith('/') ? prefix.slice(0, -1) : prefix,
});
await mail.sendMail(email, 'Change Email', 'user_changemail_mail', m);
await mail.sendMail(email, 'Change Email', 'user_changemail_mail', m.toString());
this.response.template = 'user_changemail_mail_sent.html';
}
+2 -2
View File
@@ -233,7 +233,7 @@ export class UserRegisterHandler extends Handler {
path: `/register/${t[0]}`,
url_prefix: prefix.endsWith('/') ? prefix.slice(0, -1) : prefix,
});
await sendMail(mail, 'Sign Up', 'user_register_mail', m);
await sendMail(mail, 'Sign Up', 'user_register_mail', m.toString());
this.response.template = 'user_register_mail_sent.html';
this.response.body = { mail };
} else this.response.redirect = this.url('user_register_with_code', { code: t[0] });
@@ -323,7 +323,7 @@ class UserLostPassHandler extends Handler {
url_prefix: prefix.endsWith('/') ? prefix.slice(0, -1) : prefix,
uname: udoc.uname,
});
await sendMail(mail, 'Lost Password', 'user_lostpass_mail', m);
await sendMail(mail, 'Lost Password', 'user_lostpass_mail', m.toString());
this.response.template = 'user_lostpass_mail_sent.html';
}
}
@@ -28,7 +28,7 @@ const pages = {
let rerenderCallback = null;
class ScratchpadService extends Service {
constructor(public store) {
super(ctx, 'scratchpad', true);
super(ctx, 'scratchpad');
this.load = new Promise((resolve) => {
this.loadCallback = resolve;
});