Why do I keep saying that the confirmation password is the same as the password I filled in, but it keeps saying they are inconsistent? May I ask what the reason is?
Roue
Roue 2018-06-15 15:42:25
0
7
4543

Why does the confirmation password keep saying that it is inconsistent with the password you filled in? May I ask what is the reason?

Roue
Roue

reply all(6)
王先生

After multiple verifications

'password|password'=>[
'require'=>'require',
'alphaNum'=>'alphaNum',// Only letters plus numbers are allowed
'length'=>'6,20',//Length limitation
'confirm'=>'confirm',//Automatically perform equality verification with the password_confirm field
] ,

If you write it in the above way, there will be a problem that the confirmation password is the same as the password and it keeps saying that it is inconsistent

If you write 'confirm'=>'confirm as 'confirm' There is no problem

This shows that there are still some problems with the way of writing 'confirm'=>'confirm'.

  • reply I changed it but it still doesn't work, what should I do?
    Vacant author 2019-11-10 17:59:57
王先生

I have the same problem as you, and I haven't found any reason. Have you found the reason now?


柯伟超

Just change password_confirm to confirm

<input type="password" name="confirm" class="form-control" id="inputPassword4" placeholder="password confirm">

phpcn_u228560

Password and password_confirm directly write a fixed value verification, and the returned password and confirmation fields are inconsistent. It’s better to go to the front-end verification.

小叮当

It is possible that the name of the input is not written correctly.

Summer

It may be that the name value received by the backend is inconsistent with the name value submitted by the front end.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template