I use the simple compare validation rule offered by Yii2 like this:
[confirm_email', 'compare', 'compareAttribute'=>'email', 'message'=>"Emails don't match"],
The problem is that this rule compares two emails 100% including Case Sensitive which means email@test.com and email@Test.com will generate validation error.
Is there a way to remove this Case Sensitive comparison from this rule?