summary refs log tree commit diff
diff options
context:
space:
mode:
-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 7a791164..f832721f 100644 --- a/src/api/routes/auth/forgot.ts +++ b/src/api/routes/auth/forgot.ts
@@ -111,7 +111,7 @@ router.post( }) .catch((e) => { console.error( - `Failed to send password reset email to ${user.handle}: ${e}`, + `Failed to send password reset email to ${user.tag}: ${e}`, ); throw new HTTPError("Failed to send password reset email", 500); }); diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts
index f658c286..85dc56ee 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts
@@ -331,7 +331,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 @@ -417,7 +417,7 @@ export class User extends BaseClass { 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}`, + `Failed to send verification email to ${user.tag}: ${e}`, ); }); }