Hi @gelieys Thanks for presenting the reference article.
Actually, I tried to modify the sample based on the Apply custom validation to a field article, but it did not work.
I don’t know how to write the code to validate the information in the custom field of the user trying to login.