Ver Mensaje Individual
  #16 (permalink)  
Antiguo 15/07/2015, 18:28
Avatar de xfxstudios
xfxstudios
 
Fecha de Ingreso: junio-2015
Ubicación: Valencia - Venezuela
Mensajes: 2.448
Antigüedad: 9 años, 4 meses
Puntos: 263
Respuesta: Encriptacion MD5 para mi login web

cambia:
Código PHP:
Ver original
  1. $submit = $_POST['submit']; //variable for submit button, in this variable we save button that player press in <input type='submit' name="submit" value='Login' />....
  2. $username = sanitize($_POST['username']); //variable for username, in this variable we save text that user type in <input type="text" name="username"....
  3. $password = sanitize($_POST['password']); //variable for password, in this variable we save text that user type in <input type="password" name="password"....

por:
Código PHP:
Ver original
  1. $submit = $_POST['submit']; //variable for submit button, in this variable we save button that player press in <input type='submit' name="submit" value='Login' />....
  2. $username = sanitize($_POST['username']); //variable for username, in this variable we save text that user type in <input type="text" name="username"....
  3. $pass1 = sanitize($_POST['password']); //variable for password, in this variable we save text that user type in <input type="password" name="password"....
  4.  
  5. $password = md5($pass1);