| 21 | } |
| 22 | |
| 23 | void Account::invalidate(const QString &password) |
| 24 | { |
| 25 | const QString &id = m_group.readEntry("id", QString()); |
| 26 | if (!id.isEmpty()) |
| 27 | m_resource->revokeAccess(id, name(), password); |
| 28 | m_group.writeEntry("name", ""); |
| 29 | m_group.writeEntry("id", ""); |
| 30 | m_group.writeEntry("token", ""); |
| 31 | m_group.writeEntry("created_at", ""); |
| 32 | m_group.writeEntry("orgs", ""); |
| 33 | } |
| 34 | |
| 35 | bool Account::validAccount() const |
| 36 | { |
no test coverage detected