Changeset View
Changeset View
Standalone View
Standalone View
src/core/rocketchataccountsettings.cpp
Show First 20 Lines • Show All 170 Lines • ▼ Show 20 Line(s) | |||||
171 | 171 | | |||
172 | void RocketChatAccountSettings::logout() | 172 | void RocketChatAccountSettings::logout() | ||
173 | { | 173 | { | ||
174 | mSetting->setValue(QStringLiteral("authToken"), QString()); | 174 | mSetting->setValue(QStringLiteral("authToken"), QString()); | ||
175 | mSetting->setValue(QStringLiteral("expireToken"), -1); | 175 | mSetting->setValue(QStringLiteral("expireToken"), -1); | ||
176 | mSetting->sync(); | 176 | mSetting->sync(); | ||
177 | mAuthToken.clear(); | 177 | mAuthToken.clear(); | ||
178 | mUserId.clear(); | 178 | mUserId.clear(); | ||
179 | mPassword.clear(); | | |||
180 | mExpireToken = -1; | 179 | mExpireToken = -1; | ||
181 | } | 180 | } | ||
182 | 181 | | |||
183 | QString RocketChatAccountSettings::password() const | 182 | QString RocketChatAccountSettings::password() const | ||
184 | { | 183 | { | ||
185 | return mPassword; | 184 | return mPassword; | ||
186 | } | 185 | } | ||
187 | 186 | | |||
▲ Show 20 Lines • Show All 104 Lines • Show Last 20 Lines |