From 0b3430b40d275b65248ab6aeeb079a4798a19ca1 Mon Sep 17 00:00:00 2001
From: Rosanny <rosanny.sihombing@hft-stuttgart.de>
Date: Fri, 12 Feb 2021 22:29:09 +0100
Subject: [PATCH] add new functions

---
 classes/user.js | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/classes/user.js b/classes/user.js
index 8e14ba5f..94f07edd 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
-- 
GitLab