rename handle to tag
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}`);
});
}
|