framework icon indicating copy to clipboard operation
framework copied to clipboard

Validation rule - confirmed

Open andriy-polanski opened this issue 12 years ago • 1 comments

Hi.

I'm currently working on a website using laraval framework, and while I was working on user sign up page, I faced a little problem.

I used following rule for validating password and confirm password field; array('password'=>'required|confirmed','password_confirmation'=>'required')

The problem is when user enters different password in "password" and "password_confirmation" field, I get an error for the "password" field.

What I want to do is get the confirmation error from the "password_confirmation" field.

I don't think this is a bug or issue.

I just want to know whether there would be tricks or something.

Andriy

andriy-polanski avatar May 28 '14 18:05 andriy-polanski

I can't really think of a work around off the top of my head. Someone in the Laravel.IO forums might know.

taylorotwell avatar May 30 '14 13:05 taylorotwell