🐞 fix(账号登录): 密码登录返回设备id

This commit is contained in:
luying
2022-10-24 20:21:54 +08:00
parent 81863e33ee
commit f56fd371e7
2 changed files with 2 additions and 2 deletions

View File

@@ -227,7 +227,7 @@ export default class User extends BaseModel {
public static async checkPass(tel: string, password: string, token: string, deviceId: string) {
const user: UserType = await UserModel.findOne({ tel }).select('salt').lean({ getters: true });
const user: UserType = await UserModel.findOne({ tel }).select('salt deviceId').lean({ getters: true });
if (user) {
const curTime: Date = new Date();
let { salt } = user;