search

Home  >  Q&A  >  body text

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?

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

RoueRoue2343 days ago4513

reply all(7)I'll reply

  • 王先生

    王先生2019-11-06 16:40:21

    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
    0
  • Vacant

    I changed it but it still doesn't work, what should I do?

    Vacant · 2019-11-10 17:59:57
  • 王先生

    王先生2019-11-06 16:33:14

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


    reply
    0
  • 柯伟超

    柯伟超2018-08-10 11:45:40

    Just change password_confirm to confirm

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

    reply
    1
  • phpcn_u228560

    phpcn_u2285602018-06-23 15:41:17

    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.

    reply
    0
  • 小叮当

    小叮当2018-06-16 14:16:43

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

    reply
    0
  • Summer

    Summer2018-06-15 15:58:24

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

    reply
    0
  • Cancelreply