67,685 questions
-2
votes
0
answers
42
views
Zoom webhook validation in PHP failing but not details provided in their UI [closed]
I wrote some basic PHP code using AI to validate the webhook now that it's mandatory in Zoom and based on docs / results I was going to look at testing it myself and when calling validate from the ...
0
votes
0
answers
54
views
Keycloak Admin UI accepts script tags in user fields – how to add validation or prevent XSS? [closed]
I'm currently performing a security review of the Keycloak Admin UI and noticed that it's accepting and saving raw tags in user input fields (e.g., First Name). For example, I was able to save the ...
0
votes
1
answer
62
views
Problem with textbox validation and next control focus
I am validating a textbox (specifically, a Telerik RadTextBox, but I don't think that is the problem). I've tried both RequiredFieldValidator and CustomValidator. When I press Tab, validation works ...
0
votes
0
answers
14
views
Validation Accuracy stuck between 0.5-0.6
I am currently working on a custom VGG model for Breast Cancer Classification using mammography images. It has excellent accuracy for training images but the validation accuracy is stuck at 0.5-0.6. ...
0
votes
2
answers
61
views
How to set custom validation message for HTML input on mouseenter?
I have an ASP.NET Core project and I'm trying to set custom text for the validation tooltip for the HTML form input field. By default, it shows "Please fill out this field". I tried to add ...
4
votes
1
answer
79
views
Pydantic: How to return user friendly validation error messages?
Is there any way to change the validation messages from pydantic? The problem is this: I want to return these validation messages to my frontend but not all of the users prefer the language english ...
1
vote
1
answer
31
views
disable some parts of a form
How can I disable a whole section of a form in TypeScript/React?
Body:
I'm building a form in TypeScript (using React), and I want to disable an entire section of the form — similar to how Stack ...
0
votes
0
answers
30
views
How to handle error reporting and validation of uploaded files using django-formset?
Short version
I'm using django-formset to create a contact form that includes a file upload field. When an incorrect file is selected, no error message is shown. When uploading the form with an ...
1
vote
2
answers
100
views
How can I improve input validation in a C# console application? [closed]
I’m currently working on a Student Grade Management System in C# as part of my learning project. The application allows users to add students, assign grades, calculate averages, and display student ...
0
votes
0
answers
34
views
Setting up the validator gives errors Jersey
I am trying to set up the bean validation in my jersey server. I would like to assure that everytime I get an email in this bean it is not null. But with this current setup, everytime jersey tries to ...
0
votes
1
answer
41
views
Cannot pass validation because lists that populate dropdowns are invalid for some reason
ListingController.cs:
public IActionResult Create()
{
CreateListingViewModel model = new()
{
AllCities = new SelectList(_addressRepo.AllCities()),
AllItems = new SelectList(...
1
vote
3
answers
118
views
Regular expression matching three character words separated by comma and space and all of partial versions of such string
I would like to validate user input in an web application with a regex. The user is allowed to type three character words and separate them by a comma or comma followed by space.
Valid input could be: ...
1
vote
1
answer
80
views
Read-and-validate istream equivalent to fscanf
I have a very simple scenario that looks like
std::ifstream file("myfile.txt");
std::string discard;
int num;
file >> discard >> num; // to consume e.g. HEADER 55
Despite all ...
1
vote
4
answers
118
views
How to Check if User-Entered Numbers Match Winning Lottery Numbers in Any Order (JavaScript)?
I'm working on a simple lottery number checker using JavaScript for my website. The user enters three numbers through a form, and I have three winning numbers stored in an array. I want to check if ...
0
votes
1
answer
98
views
How to collect and return multiple validation errors from service layer in .NET 8 instead of throwing exceptions?
if (!hasAnyPhoneNumber)
throw new NotEmptyException("PhoneNumber", MessageHelper.GetMessage(ErrorMessageName.NOT_EMPTY));
I haven't tried any specific solution yet, but my goal is to ...