kaushal
6 months ago

Can anyone give example of confirm password validation?? I am using following way but not working properlly.

Posted 6 months ago by kaushal
$arr_validation["rules"] = array(
    "password"              => "required|confirmed",
    "password_confirmation" => "required",
);
            
$arr_validation["rules_messages"] = array(
    "password.required"                 => "Please Enter password",
    "password_confirmation.required"    => "Please Enter Confirm Password",
    "password.confirmed"                => "Confirm password does not metch with password!",
);

$validator = validator::make($arr_form_data, $arr_validation["rules"], $arr_validation["rules_messages"]);

Please sign in or create an account to participate in this conversation.