Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit c48551f1 authored by g4m4's avatar g4m4
Browse files

[CODE] Fix default credentials being ignored

parent 487a0a49
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ THIRD_PARTY_INCLUDES_START
#include "fixit/settings.h"
THIRD_PARTY_INCLUDES_END
// ENGINE_MAJOR_VERSION
// ENGINE_MAJOR_VERSION
#include "Runtime/Launch/Resources/Version.h"
#include "FixItCore.h"
......@@ -23,6 +23,8 @@ THIRD_PARTY_INCLUDES_END
UFixItSettings::UFixItSettings()
:
DefaultLogin(TEXT(kDefaultCredentialsLogin)),
DefaultToken(TEXT(kDefaultCredentialsToken)),
bAllowCustomisingLabels(false)
{}
......@@ -88,8 +90,8 @@ void UFixItSettings::CopyToInternal(UFixItSettings* Instance) {
UE_LOG(LogFixItCore, Error, TEXT("Could not save settings to the internal struct: null internal settings"));
return;
}
Instance->Settings->DefaultLogin = FFixItTranslationLayer::ToStd(kDefaultCredentialsLogin);
Instance->Settings->DefaultToken = FFixItTranslationLayer::ToStd(kDefaultCredentialsToken);
Instance->Settings->DefaultLogin = FFixItTranslationLayer::ToStd(TEXT(kDefaultCredentialsLogin));
Instance->Settings->DefaultToken = FFixItTranslationLayer::ToStd(TEXT(kDefaultCredentialsToken));
Instance->Settings->Login = FFixItTranslationLayer::ToStd(Instance->Login);
Instance->Settings->Token = FFixItTranslationLayer::ToStd(Instance->Token);
Instance->Settings->ProjectName = FFixItTranslationLayer::ToStd(Instance->ProjectName);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment