Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Password confirmation doesnot match?

I am trying to using confirm password validation. I applied correct rules. But when it validates then it give me validation error like below: The password confirmation does not match. Controller

public function register(Request $req){
        $this->validate($req,[
           'Password'         =>   'required|confirmed|min:3'
          ]);

    }
like image 384
Ahsan Asif Avatar asked Jul 18 '26 21:07

Ahsan Asif


1 Answers

what is your password confirmation field name because |confirmed| always work with laravel naming conversions For example, if the field under validation is password, a matching password_confirmation field must be present in the input.

is that your input name is password_confirmation ?? if not do that else comment me more code please so i can help you..

like image 152
M.Idrish Avatar answered Jul 22 '26 01:07

M.Idrish