diff options
Diffstat (limited to 'api/logic/minecraft/auth/MojangAccount.cpp')
-rw-r--r-- | api/logic/minecraft/auth/MojangAccount.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/api/logic/minecraft/auth/MojangAccount.cpp b/api/logic/minecraft/auth/MojangAccount.cpp index 2b073aac..e6247608 100644 --- a/api/logic/minecraft/auth/MojangAccount.cpp +++ b/api/logic/minecraft/auth/MojangAccount.cpp @@ -298,3 +298,9 @@ void MojangAccount::incrementUses() qWarning() << "Account" << m_username << "is now in use."; } } + +void MojangAccount::invalidateClientToken() +{ + m_clientToken = QUuid::createUuid().toString().remove(QRegExp("[{}-]")); + emit changed(); +} |