From ac04478d1d9bfc3578ff47e60ecbf0f24fdb90b8 Mon Sep 17 00:00:00 2001 From: whyour Date: Sun, 11 May 2025 18:59:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=87=8D=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/services/user.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/back/services/user.ts b/back/services/user.ts index 7f5e9d8e..f5909ee3 100644 --- a/back/services/user.ts +++ b/back/services/user.ts @@ -363,12 +363,13 @@ export default class UserService { } public async resetAuthInfo(info: Partial) { - const { retries, twoFactorActivated, password } = info; + const { retries, twoFactorActivated, password, username } = info; const authInfo = await this.getAuthInfo(); await this.updateAuthInfo(authInfo, { retries, twoFactorActivated, password, + username }); } }