(I realize I don’t need to specify compareAttribute here)
On the form it shows the pw field, then the verity pw field. Right after I type in the password, it gives the error about it needing to repeat exactly on the pw field rather than the pw verify field. It’s no problem if I simply change the compare rule to this:
[font="monospace"][size="2"]I was looking at the yii-user-management code, and it has the compare on the password, but the error shows up on the verify password.[/size][/font]
Right, but usually the password_repeat box is after the main password box. It doesn’t make sense to give an error about it not matching until they at least have the opportunity to type it a second time. But the way you have it, it compares the password to password_repeat before password_repeat has been typed in and always give the error. The error appears on the password field, not the password_repeat field.