I need to compare new password with old one that they are unequal it`s a code where new password and password confirm compares, but what I can do for my matter?
['password_confirm', 'compare', 'compareAttribute'=>'password_new', 'message'=>"пароль и подтверждение пароля не совпадает" ],