Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
User Account
Commits
0b3430b4
Commit
0b3430b4
authored
Feb 12, 2021
by
Rosanny Sihombing
Browse files
add new functions
parent
6836e43c
Changes
1
Hide whitespace changes
Inline
Side-by-side
classes/user.js
View file @
0b3430b4
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment