Inspector items, update changes

0

I have a registration form, I use the Semantic framework, and through Jquery I am responsible for making form validations. (Even so, when the whole query is sent to PHP, I'll do the validations again this time through a server.)

This is the form validation code.

  <script>
  $(document)
    .ready(function() {
      $('.ui.form')
        .form({
          fields: {
            user: {
              identifier  : 'user',
              rules: [
                {
                  type   : 'empty',
                  prompt : 'No se ha introducido ningún usuario.'
                }
              ]
            },
            password: {
              identifier  : 'password',
              rules: [
                {
                  type   : 'empty',
                  prompt : 'No se ha introducido ninguna contraseña.'
                },
                {
                  type   : 'length[8]',
                  prompt : 'La contraseña debe tener 8 caracteres como mínimo.'
                }
              ]
            },
            password2: {
              identifier  : 'password2',
              rules: [
                {
                  type   : 'empty',
                  prompt : 'No se ha confirmado la contraseña.'
                },
                {
                  type   : 'match[password]',
                  prompt : 'Las contraseñas no coinciden.'
                }
              ]
            },
            email: {
              identifier : 'email',
              rules: [
                {
                  type : 'empty',
                  prompt : 'No se ha introducido ningún email.'
                },
                {
                  type   :  'email',
                  prompt :  'El email no es válido.'
                }
              ]
            }

          }
        })
      ;
    })
  ;
  </script>

My question now is the following, using the element inspector and trying to edit the length of the password, in order to enter fewer characters than what you initially requested, however for some reason even when I change it from the element inspector this one it does not actualize. Any idea why?

The main idea is that users register with a password of at least 8 characters. Internally I have a database that gives points to users based on certain achievements, and I would like to give points to those who managed to enter a password of less than eight characters in their registry. That is, give points to those who managed to 'cheat' that kind of security.

    
asked by Omar 06.05.2018 в 08:21
source

0 answers