summary refs log tree commit diff
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@protonmail.com>2023-05-05 16:41:24 -0400
committerRory& <root@rory.gay>2026-01-21 07:10:10 +0100
commit90038fecdddb8dbba3bf6fc107972d3b4751b982 (patch)
tree58b8e668dc98eb0f98537b9145f70f02b54c5f5a
parentlint (diff)
downloadserver-ts-90038fecdddb8dbba3bf6fc107972d3b4751b982.tar.xz
rename handle to tag
-rw-r--r--src/api/routes/auth/forgot.ts2
-rw-r--r--src/util/entities/User.ts4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/api/routes/auth/forgot.ts b/src/api/routes/auth/forgot.ts

index 69ca582b..7b44613a 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 5c98941a..ffd241f0 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}`); }); }