Skip to content

Commit 543d60e

Browse files
committed
rename handle to tag
1 parent b005812 commit 543d60e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/api/routes/auth/forgot.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ router.post(
111111
})
112112
.catch((e) => {
113113
console.error(
114-
`Failed to send password reset email to ${user.handle}: ${e}`,
114+
`Failed to send password reset email to ${user.tag}: ${e}`,
115115
);
116116
throw new HTTPError("Failed to send password reset email", 500);
117117
});

src/util/entities/User.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ export class User extends BaseClass {
341341
}
342342
}
343343

344-
public get handle(): string {
344+
public get tag(): string {
345345
const { pomeloEnabled } = Config.get().general;
346346

347347
// if pomelo is enabled, global_name should be set
@@ -427,7 +427,7 @@ export class User extends BaseClass {
427427
if (!Config.get().defaults.user.verified && email) {
428428
await Email.sendVerifyEmail(user, email).catch((e) => {
429429
console.error(
430-
`Failed to send verification email to ${user.handle}: ${e}`,
430+
`Failed to send verification email to ${user.tag}: ${e}`,
431431
);
432432
});
433433
}

0 commit comments

Comments
 (0)