ValidationRule.IsEqual Usage... #4127
-
Hello, is there any example available on how to use ValidationRule.IsEqual? I want to compare to password fields. Thx |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I believe For comparing password look at our demo as an example https://github.com/Megabit/Blazorise/blob/master/Demos/Blazorise.Demo/Pages/Tests/ValidationsPage.razor#L52 |
Beta Was this translation helpful? Give feedback.
-
Hello, many thx for your fast answer. Yes i was able to validate and compare with own functions as you did in your example. But i wonder if there is a isEqual Method in the Validator object, why is it not useable like: Validator.isEqual(MyModel.password, MyModel.ConfirmPassword) |
Beta Was this translation helpful? Give feedback.
I believe
ValidationRule.IsEqual
is an obsolete API, and we should remove it.For comparing password look at our demo as an example https://github.com/Megabit/Blazorise/blob/master/Demos/Blazorise.Demo/Pages/Tests/ValidationsPage.razor#L52