Commit c9d12e19 authored by Geovanny Vera's avatar Geovanny Vera

Permissions panel fixed

parent c16bc11e
......@@ -21,8 +21,8 @@ async function main(){
const ip = await publicIp.v4();
UE_CONFIG.ip = ip;
const api = 'https://api.ev3.me/';
//const api = 'http://localhost:1337/';
//const api = 'https://api.ev3.me/';
const api = 'http://localhost:1337/';
const response = await fetch(`${api}instances/add-world-server`, {
headers: {
......
......@@ -72,8 +72,8 @@ void UHttpService::SetRequestHeaders(TSharedRef<IHttpRequest>& Request) {
TSharedRef<IHttpRequest> UHttpService::RequestWithRoute(FString Subroute) {
// I have to set it here because for some reason if I set it on the constructor it becomes empty when it reaches here
// TODO: Figure out why that happens and fix it to remove this line
FString VRCAPIPath1 = FString(TEXT("https://api.ev3.me/"));
//FString VRCAPIPath1 = FString(TEXT("http://localhost:1337/"));
//FString VRCAPIPath1 = FString(TEXT("https://api.ev3.me/"));
FString VRCAPIPath1 = FString(TEXT("http://localhost:1337/"));
Http = &FHttpModule::Get();
TSharedRef<IHttpRequest> Request = Http->CreateRequest();
......
......@@ -19,10 +19,10 @@ void UVRCLoginWidget::LoginAndCreateSession(FString Username, FString Password)
}
Http->SetTimeout(LoginTimeout); //Set timeout
FString UsernameA = FPlatformMisc::GetEnvironmentVariable(TEXT("UEServerUserName"));
FString PasswordA = FPlatformMisc::GetEnvironmentVariable(TEXT("UEServerPassword"));
//FString UsernameA = FPlatformMisc::GetEnvironmentVariable(TEXT("UEServerUserName"));
//FString PasswordA = FPlatformMisc::GetEnvironmentVariable(TEXT("UEServerPassword"));
UE_LOG(LogTemp, Warning, TEXT("User: %s, Pass: %s"), *UsernameA, *PasswordA);
UE_LOG(LogTemp, Warning, TEXT("User: %s, Pass: %s"), *Username, *Password);
//Trim whitespace
Username.TrimStartAndEndInline();
......
......@@ -165,7 +165,7 @@ void AVRCPlayerController::OnGetUserDataRecieved(FHttpRequestPtr Request, FHttpR
playerState->UserName = UserName;
playerState->DisplayName = DisplayName;
UE_LOG(LogTemp, Log, TEXT("OnGetUserData success"));
UE_LOG(LogTemp, Log, TEXT("OnGetUserData success: ID: %d, username: %s"), UserID, *UserName);
}
else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment