rename handle to tag

This commit is contained in:
Puyodead1
2023-05-05 16:41:24 -04:00
committed by Rory&
parent 3341c9cf98
commit 90038fecdd
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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);
+2 -2
View File
@@ -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}`);
});
}