diff --git a/classes/user.js b/classes/user.js index 8e14ba5f210927deabc814092fb78e35cf71db6d..94f07edd3f8c382b22504f0e356f84506011d662 100644 --- a/classes/user.js +++ b/classes/user.js @@ -15,6 +15,9 @@ class User { } // getter + getId() { + return this.id + } getEmail() { return this.email } @@ -64,6 +67,17 @@ class User { setVerificationStatus(verificationStatus) { this.verificationStatus = verificationStatus } + + updateProfile(newSalutation, newTitle, newFirstname, newLastname, newEmail, newOrganisation, newIndustry, newSpeciality) { + this.salutation = newSalutation + this.title = newTitle + this.firstName = newFirstname + this.lastName = newLastname + this.email = newEmail + this.organisation = newOrganisation + this.industry = newIndustry + this.speciality = newSpeciality + } } module.exports = User \ No newline at end of file