1
0
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:
2022-02-14 15:01:33 +00:00
parent 1f1a150f9c
commit 6055a1e797

View File

@@ -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) {