1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-25 11:43:07 +01:00

rename handle to tag

This commit is contained in:
Puyodead1 2023-05-05 16:41:24 -04:00
parent cfd8dc0141
commit adfee03829
No known key found for this signature in database
GPG Key ID: BA5F91AAEF68E5CE
2 changed files with 3 additions and 3 deletions

View File

@ -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);
});

View File

@ -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}`,
);
});
}