Commit 0b3430b4 authored by Rosanny Sihombing's avatar Rosanny Sihombing
Browse files

add new functions

parent 6836e43c
...@@ -15,6 +15,9 @@ class User { ...@@ -15,6 +15,9 @@ class User {
} }
// getter // getter
getId() {
return this.id
}
getEmail() { getEmail() {
return this.email return this.email
} }
...@@ -64,6 +67,17 @@ class User { ...@@ -64,6 +67,17 @@ class User {
setVerificationStatus(verificationStatus) { setVerificationStatus(verificationStatus) {
this.verificationStatus = 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 module.exports = User
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment