From 014d9ca7e0cdc1ef4b633a28ba9befddb2951179 Mon Sep 17 00:00:00 2001 From: Erik Prabowo Kamal Date: Fri, 30 Aug 2019 16:43:48 +0800 Subject: User password member --- user.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'user.cxx') 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) { -- cgit v1.2.3