diff --git a/src/api/routes/auth/forgot.ts b/src/api/routes/auth/forgot.ts index 7a7911644..f832721f0 100644 --- a/src/api/routes/auth/forgot.ts +++ b/src/api/routes/auth/forgot.ts @@ -111,7 +111,7 @@ router.post( }) .catch((e) => { console.error( - `Failed to send password reset email to ${user.handle}: ${e}`, + `Failed to send password reset email to ${user.tag}: ${e}`, ); throw new HTTPError("Failed to send password reset email", 500); }); diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts index f658c286c..85dc56ee2 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts @@ -331,7 +331,7 @@ export class User extends BaseClass { } } - public get handle(): string { + public get tag(): string { const { pomeloEnabled } = Config.get().general; // if pomelo is enabled, global_name should be set @@ -417,7 +417,7 @@ export class User extends BaseClass { if (!Config.get().defaults.user.verified && email) { await Email.sendVerifyEmail(user, email).catch((e) => { console.error( - `Failed to send verification email to ${user.handle}: ${e}`, + `Failed to send verification email to ${user.tag}: ${e}`, ); }); }