core_second/functions/functions.input.php
/* Ensure that $password is not empty and valid */
Ensure that $password is not empty and valid
Ensure that $password is not empty and valid
function check_passwords($password, $checkpassword, $config)
{
  if(filled($password) AND filled($checkpassword))
  {
    if(same_inputs($password, $checkpassword))
    {
      if(valid_password($password, $config))
      {
        return true;
      }
      else
      {
        return "<span class=\"error_msg\">Le mot de passe est invalide ! </span><br/>";
      }
    }
    else
    {
      return "<span class=\"error_msg\">Les mots de passe ne sont pas identiques ! </span><br/>";
    }
  }
  else
  {
    return "<span class=\"error_msg\"> Les mots de passe doivent être remplis ! </span><br/>";
  }
}
function check_passwords ( $ password , $ checkpassword , $ config ) { if ( filled ( $ password ) AND filled ( $ checkpassword ) ) { if ( same_inputs ( $ password , $ checkpassword ) ) { if ( valid_password ( $ password , $ config ) ) { return true ; } else { return " <span class= \" error_msg \" >Le mot de passe est invalide ! </span><br/> " ; } } else { return " <span class= \" error_msg \" >Les mots de passe ne sont pas identiques ! </span><br/> " ; } } else { return " <span class= \" error_msg \" > Les mots de passe doivent être remplis ! </span><br/>" ; } }
Ensure that $password is not empty and valid
Ensure that $password is not empty and valid