diff --git a/launcher/src/squareenixlogin.cpp b/launcher/src/squareenixlogin.cpp index 65715ae..e27a9ed 100644 --- a/launcher/src/squareenixlogin.cpp +++ b/launcher/src/squareenixlogin.cpp @@ -255,22 +255,9 @@ QCoro::Task> SquareEnixLogin::getStor const auto reply = m_launcher.mgr()->get(request); co_await reply; + m_username = m_info->username; + const QString str = QString::fromUtf8(reply->readAll()); - - // fetches Steam username - if (m_info->profile->account()->config()->license() == Account::GameLicense::WindowsSteam) { - const static QRegularExpression re(QStringLiteral(R"lit(.*)""\/>)lit")); - const QRegularExpressionMatch match = re.match(str); - - if (match.hasMatch()) { - m_username = match.captured(1); - } else { - Q_EMIT m_launcher.loginError(i18n("Could not get Steam username, have you attached your account?")); - } - } else { - m_username = m_info->username; - } - const static QRegularExpression re(QStringLiteral(R"lit(\t<\s*input .* name="_STORED_" value="(?.*)">)lit")); const QRegularExpressionMatch match = re.match(str); if (match.hasMatch()) {