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:
parent
cfd8dc0141
commit
adfee03829
@ -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);
|
||||
});
|
||||
|
@ -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}`,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user