mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 13:39:26 +00:00
Added User.getEmail
This commit is contained in:
@@ -117,6 +117,10 @@ class User {
|
||||
return `${this.firstName} ${this.lastName}`;
|
||||
}
|
||||
|
||||
getEmail() {
|
||||
return `${this.fullName} <${this.email}>`;
|
||||
}
|
||||
|
||||
async verifyPassword(password) {
|
||||
return await bcrypt.compare(password, this.#password);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user