mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 22:19:26 +00:00
Implemented User getter for fullName
This commit is contained in:
@@ -59,7 +59,14 @@ class User {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get fullName() {
|
get fullName() {
|
||||||
|
let name = `${this.firstName} `;
|
||||||
|
|
||||||
|
if (this.otherNames.length > 0)
|
||||||
|
name += `${this.otherNames} `;
|
||||||
|
|
||||||
|
name += this.lastName;
|
||||||
|
|
||||||
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
async verifyPassword(password) {
|
async verifyPassword(password) {
|
||||||
|
|||||||
Reference in New Issue
Block a user