diff options
author | Erik Prabowo Kamal <erik@darapsa.co.id> | 2019-08-30 16:43:48 +0800 |
---|---|---|
committer | Erik Prabowo Kamal <erik@darapsa.co.id> | 2019-08-30 16:43:48 +0800 |
commit | 014d9ca7e0cdc1ef4b633a28ba9befddb2951179 (patch) | |
tree | 3897d86bbdfd3060351e8a20c59b5ce04bb7fe4d /user.cxx | |
parent | b15e02739052557480bc272920f251cc4eed00b0 (diff) |
User password member
Diffstat (limited to 'user.cxx')
-rw-r--r-- | user.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) { |