mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-30 23:15:52 +00:00
rename handle to tag
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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}`);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user