Advertisement
Guest User

Untitled

a guest
Sep 27th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. $clave=$_POST['clave'];
  2. $pass = password_hash($clave, PASSWORD_DEFAULT);
  3.  
  4. $clave='123'.$username.'IME';
  5. $pass = password_hash($clave, PASSWORD_DEFAULT);
  6.  
  7. $claveold=$_POST['claveold'];
  8. $clavenew=$_POST['clavenva'];
  9. $oldpass = password_hash($claveold, PASSWORD_DEFAULT);
  10. $pass = password_hash($clavenew, PASSWORD_DEFAULT);
  11.  
  12. $clave = $_POST['clave'];
  13. //$pass = password_hash($clave, PASSWORD_BCRYPT);
  14. $pass = password_hash($clave, PASSWORD_DEFAULT);
  15. $grupo = $_POST['grupo'];
  16. $error = '';
  17. $sql011 = "SELECT 98_idusr, 98_username, 98_clave, 98_grupo FROM $t98 WHERE 98_username = '$username' AND 98_clave = '$pass' AND 98_grupo = '$grupo'";
  18. $res011 = mysqli_query($conexion,$sql011);
  19. $rows=$res011->num_rows;
  20. if ($rows > 0) {
  21. $row = $res011->fetch_assoc();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement