Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Source/Convai/Public/ConvaiUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ class UConvaiFormValidation : public UBlueprintFunctionLibrary
{
if ((API_Key.Len()))
{
if (API_Key[0] == TEXT(' ') || API_Key[API_Key.Len() - 1] == TEXT(' '))
{
UE_LOG(ConvaiFormValidationLog,Warning,TEXT("API Key contains space, please enter correct API Key"));
return false;
}
return true;
}
else
Expand All @@ -115,6 +120,11 @@ class UConvaiFormValidation : public UBlueprintFunctionLibrary
{
if ((SessionID.Len()))
{
if (SessionID[0] == TEXT(' ') || SessionID[SessionID.Len() - 1] == TEXT(' '))
{
UE_LOG(ConvaiFormValidationLog, Warning, TEXT("Session ID contains space, please enter correct Session ID"));
return false;
}
return true;
}
else
Expand All @@ -128,6 +138,11 @@ class UConvaiFormValidation : public UBlueprintFunctionLibrary
{
if ((CharacterID.Len()))
{
if (CharacterID[0] == TEXT(' ') || CharacterID[CharacterID.Len() - 1] == TEXT(' '))
{
UE_LOG(ConvaiFormValidationLog, Warning, TEXT("CharacterID Contains space, pleae enter correct Character ID"));
return false;
}
return true;
}
else
Expand Down