summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Authenticator.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2023-05-09 19:59:15 +0200
committerMattes D <github@xoft.cz>2023-05-19 16:25:12 +0200
commit97c49c6f294a0b7e931be2692c124bd78fc79946 (patch)
tree872fcdfbfc30ff0ed2e2e444bb965769ea147e60 /src/Protocol/Authenticator.cpp
parentcTCPLink: Use the original connection hostname for SNI. (diff)
downloadcuberite-97c49c6f294a0b7e931be2692c124bd78fc79946.tar
cuberite-97c49c6f294a0b7e931be2692c124bd78fc79946.tar.gz
cuberite-97c49c6f294a0b7e931be2692c124bd78fc79946.tar.bz2
cuberite-97c49c6f294a0b7e931be2692c124bd78fc79946.tar.lz
cuberite-97c49c6f294a0b7e931be2692c124bd78fc79946.tar.xz
cuberite-97c49c6f294a0b7e931be2692c124bd78fc79946.tar.zst
cuberite-97c49c6f294a0b7e931be2692c124bd78fc79946.zip
Diffstat (limited to 'src/Protocol/Authenticator.cpp')
-rw-r--r--src/Protocol/Authenticator.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Protocol/Authenticator.cpp b/src/Protocol/Authenticator.cpp
index 00b09c30d..41eac82d3 100644
--- a/src/Protocol/Authenticator.cpp
+++ b/src/Protocol/Authenticator.cpp
@@ -65,8 +65,8 @@ void cAuthenticator::ReadSettings(cSettingsRepositoryInterface & a_Settings)
}
{
- auto [IsSuccessfull, ErrorMessage] = cUrlParser::Validate(m_Server);
- if (!IsSuccessfull)
+ auto [IsSuccessful, ErrorMessage] = cUrlParser::Validate(m_Server);
+ if (!IsSuccessful)
{
LOGWARNING("%s %d: Supplied invalid URL for configuration value [Authentication: Server]: \"%s\", using default! Error: %s", __FUNCTION__, __LINE__, m_Server.c_str(), ErrorMessage.c_str());
m_Server = DEFAULT_AUTH_SERVER;
@@ -74,8 +74,8 @@ void cAuthenticator::ReadSettings(cSettingsRepositoryInterface & a_Settings)
}
{
- auto [IsSuccessfull, ErrorMessage] = cUrlParser::Validate(m_Server);
- if (!IsSuccessfull)
+ auto [IsSuccessful, ErrorMessage] = cUrlParser::Validate(m_Server);
+ if (!IsSuccessful)
{
LOGWARNING("%s %d: Supplied invalid URL for configuration value [Authentication: Address]: \"%s\", using default! Error: %s", __FUNCTION__, __LINE__, m_Address.c_str(), ErrorMessage.c_str());
m_Address = DEFAULT_AUTH_ADDRESS;
@@ -183,8 +183,8 @@ bool cAuthenticator::AuthWithYggdrasil(AString & a_UserName, const AString & a_S
ReplaceURL(ActualAddress, "%SERVERID%", a_ServerId);
// Create and send the HTTP request
- auto [IsSuccessfull, Response] = cUrlClient::BlockingGet(m_Server + ActualAddress);
- if (!IsSuccessfull)
+ auto [IsSuccessful, Response] = cUrlClient::BlockingGet(m_Server + ActualAddress);
+ if (!IsSuccessful)
{
return false;
}
@@ -230,8 +230,8 @@ bool cAuthenticator::GetPlayerProperties(const AString & a_UUID, Json::Value & a
LOGD("Trying to get properties for user %s", a_UUID.c_str());
// Create and send the HTTP request
- auto [IsSuccessfull, Response] = cUrlClient::BlockingGet(m_Server + ActualAddress);
- if (!IsSuccessfull)
+ auto [IsSuccessful, Response] = cUrlClient::BlockingGet(m_Server + ActualAddress);
+ if (!IsSuccessful)
{
return false;
}