spiritflags-gmail
-
2/16/2010 8:03:18 AM
How to set "Password with confirmation" validation error message(s)?
Hi,
I'm using an Alternative form for the User System Table. In the form, i'm using the UserPassword field with the field type of "Password with confirmation". This produces 2 password fields for entering and confirming a password. In order to get both an "Enter password" and "Confirm password" label to show, i've already had to hack the PasswordConfirmator.ascx form control. And that is working fine. All that is left to do is to stop it from displaying "Please enter some value" (the basicform.error value) when you don't enter a password or enter passwords that don't match. I've tried all of the below and nothing makes a difference to the message displayed to the user on the page with my Registration web part on it:
- Making the field mandatory and entering an error message via Site Manager > Development > System Tables > User > Fields.
- Making the field mandatory and entering an error message via Site Manager > Development > System Tables > User > Alternative Forms > My Custom Registration Form > Fields.
- Specifying my own strings in Site Manager > Development > UI Cultures for the fields that PasswordConfirmator.ascx should be using (PassConfirmator.PasswordDoNotMatch, PassConfirmator.InvalidPassword, PassConfirmator.PasswordLength) and making sure the web.config is set to make the site look at the DB FIRST for UI strings.
- Looked in the CMS.resx and it isn't even using the string values mentioned above, it's using basicform.error.
So any ideas how I can make my password field display sensible validation messages?
Thanks for any help.
|