summaryrefslogtreecommitdiff
path: root/user.cxx
diff options
context:
space:
mode:
authorErik Prabowo Kamal <erik@darapsa.co.id>2019-08-30 16:43:48 +0800
committerErik Prabowo Kamal <erik@darapsa.co.id>2019-08-30 16:43:48 +0800
commit014d9ca7e0cdc1ef4b633a28ba9befddb2951179 (patch)
tree3897d86bbdfd3060351e8a20c59b5ce04bb7fe4d /user.cxx
parentb15e02739052557480bc272920f251cc4eed00b0 (diff)
User password member
Diffstat (limited to 'user.cxx')
-rw-r--r--user.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/user.cxx b/user.cxx
index 3da2c33..3762f81 100644
--- a/user.cxx
+++ b/user.cxx
@@ -8,6 +8,14 @@ void User::setName(QString const& name)
}
}
+void User::setPassword(QString const& password)
+{
+ if (m_password != password) {
+ m_password = password;
+ emit passwordChanged();
+ }
+}
+
void User::setEmailAddress(QString const& emailAddress)
{
if (m_emailAddress != emailAddress) {