添加功能:pretest discuss user dashboard statistics

This commit is contained in:
undefined committed 2020-04-27 12:18:36 +08:00
1 parent 61cba6f180
commit 15d43636c0
41 files changed
+920 -523

No files matched your search

+1 -1
View File
@@ -91,7 +91,7 @@ class UserRegisterWithCodeHandler extends Handler {
const { mail } = await token.get(code, token.TYPE_REGISTRATION);
if (!mail) throw new InvalidTokenError(token.TYPE_REGISTRATION, code);
if (password !== verifyPassword) throw new VerifyPasswordError();
const uid = await system.incUserCounter();
const uid = await system.inc('user');
await user.create({
uid, uname, password, mail, regip: this.request.ip,
});