From 90038fecdddb8dbba3bf6fc107972d3b4751b982 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Fri, 5 May 2023 16:41:24 -0400 Subject: [PATCH] rename handle to tag --- src/api/routes/auth/forgot.ts | 2 +- src/util/entities/User.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/routes/auth/forgot.ts b/src/api/routes/auth/forgot.ts index 69ca582be..7b44613a2 100644 --- a/src/api/routes/auth/forgot.ts +++ b/src/api/routes/auth/forgot.ts @@ -73,7 +73,7 @@ router.post( return res.sendStatus(204); }) .catch((e) => { - console.error(`Failed to send password reset email to ${user.handle}: ${e}`); + console.error(`Failed to send password reset email to ${user.tag}: ${e}`); throw new HTTPError("Failed to send password reset email", 500); }); else throw new HTTPError("No user or email", 500); diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts index 5c98941af..ffd241f0e 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts @@ -270,7 +270,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 @@ -352,7 +352,7 @@ export class User extends BaseClass { // send verification email if users aren't verified by default and we have an email 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}`); + console.error(`Failed to send verification email to ${user.tag}: ${e}`); }); }