<![CDATA[ Login Register custom validator question - My Forums]]> https://forums.modx.com/thread/?thread=98371 <![CDATA[Login Register custom validator question]]> https://forums.modx.com/thread/98371/login-register-custom-validator-question#dis-post-531954 https://rtfm.modx.com/extras/revo/login/login.register#Login.Register-CustomValidators but it does not work... Is the example code wrong?

Using the example code, the only way to pass the custom validation is if your matched field includes the exact characters within the ^^ text in the Register code call - I had thought it would be OK to place a field name in their to compare... e.g. equalTo=^email^ - but instead of comparing and checking to make sure the confirm_email field contains the same text as the email field, it wants the confirm_email field to actually contain the characters 'email'!!!??? How can I get it to compare the contents of a field rather than a string?]]>
dubbs Sep 21, 2015, 04:51 PM https://forums.modx.com/thread/98371/login-register-custom-validator-question#dis-post-531954
<![CDATA[Re: Login Register custom validator question]]> https://forums.modx.com/thread/98371/login-register-custom-validator-question#dis-post-532054 BobRay Sep 22, 2015, 06:18 PM https://forums.modx.com/thread/98371/login-register-custom-validator-question#dis-post-532054 <![CDATA[Re: Login Register custom validator question]]> https://forums.modx.com/thread/98371/login-register-custom-validator-question#dis-post-531983

email_confirm:password_confirm=^email^


But the error when they don't match mentions the work password... any idea where the PHP tpl is so I can update the text?]]>
dubbs Sep 22, 2015, 03:25 AM https://forums.modx.com/thread/98371/login-register-custom-validator-question#dis-post-531983
<![CDATA[Re: Login Register custom validator question]]> https://forums.modx.com/thread/98371/login-register-custom-validator-question#dis-post-531982 Quote from: BobRay at Sep 22, 2015, 07:27 AM
Register claims to have the same built-in validators as FormIt. Have you tried this?

&validate=`confirm_email:password_confirm=^email^`

I have... but not as you have written it... e.g. I have tried:

&validate=`confirm_email:confirm_email=^email^`


Maybe that's why it didnt work... will try your code snippet...]]>
dubbs Sep 22, 2015, 03:14 AM https://forums.modx.com/thread/98371/login-register-custom-validator-question#dis-post-531982
<![CDATA[Re: Login Register custom validator question (Best Answer)]]> https://forums.modx.com/thread/98371/login-register-custom-validator-question#dis-post-531977
&validate=`confirm_email:password_confirm=^email^`
]]>
BobRay Sep 22, 2015, 02:27 AM https://forums.modx.com/thread/98371/login-register-custom-validator-question#dis-post-531977