Welcome Guest, Not a member yet? Register   Sign In
The 'matches' validation rule fails even though I'm sure its correct
#3

(This post was last modified: 06-09-2021, 05:22 AM by Polymorphism.)

(06-09-2021, 03:34 AM)InsiteFX Wrote: I think it has to do with the hyphen - sign in the rule name.
PHP Code:
'password-confirm' => 'required|matches[password]'

// change to this in all your code and form _
 
'password_confirm' => 'required|matches[password]'

Thanks for helping me out with thisI ran a global find and replace for this and I'm still getting this error. Is there a very particular way to use the 'matches' rule?

I did also notice that I get an error saying that the '
password_confirm' field is missing from the $data array with I try to insert a new user, even though that its not a field in the database or on the $allowedFields array for the User class. I'm not sure that that is related though
Reply


Messages In This Thread
RE: The 'matches' validation rule fails even though I'm sure its correct - by Polymorphism - 06-09-2021, 05:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB