aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/auth/MinecraftAccount.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2021-08-27 22:35:17 +0200
committerPetr Mrázek <peterix@gmail.com>2021-08-27 22:35:17 +0200
commitb2c1100b1c3a1eb64152eba7aafac6493b2f7ff0 (patch)
treeb021f6227a1780009d886fe15c11ea715173e6dd /launcher/minecraft/auth/MinecraftAccount.cpp
parent34a5459dcef1adb7eb355bb0f940eb212173857f (diff)
downloadPrismLauncher-b2c1100b1c3a1eb64152eba7aafac6493b2f7ff0.tar.gz
PrismLauncher-b2c1100b1c3a1eb64152eba7aafac6493b2f7ff0.tar.bz2
PrismLauncher-b2c1100b1c3a1eb64152eba7aafac6493b2f7ff0.zip
NOISSUE introduce the concept of secrets static library
Diffstat (limited to 'launcher/minecraft/auth/MinecraftAccount.cpp')
-rw-r--r--launcher/minecraft/auth/MinecraftAccount.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/launcher/minecraft/auth/MinecraftAccount.cpp b/launcher/minecraft/auth/MinecraftAccount.cpp
index 671f9c38..4231d6b0 100644
--- a/launcher/minecraft/auth/MinecraftAccount.cpp
+++ b/launcher/minecraft/auth/MinecraftAccount.cpp
@@ -245,7 +245,12 @@ void MinecraftAccount::authFailed(QString reason)
emit changed();
if (session)
{
- session->status = AuthSession::RequiresPassword;
+ if(data.type == AccountType::MSA) {
+ session->status = AuthSession::RequiresOAuth;
+ }
+ else {
+ session->status = AuthSession::RequiresPassword;
+ }
session->auth_server_online = true;
fillSession(session);
}