- Posts: 5
- Thank you received: 0
Grid Status: | Online |
Total Regions: | 23 |
Visitors (30 Days): | 11 |
Total Residents: | 491 |
Online Now: | 0 |
Hypergriders online: | 0 |
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
$user['passwordSalt'] = md5(time()); // oder auch ... md5("blabla".microtime()."undsoweiter")
$user['passwordHash'] = md5(md5($user['password']).":".$user['passwordSalt']);
Please Log in to join the conversation.
SELECT
auth.*
FROM
auth
WHERE
auth.passwordHash = MD5(CONCAT(MD5('$eingegebenesPasswort'),':',auth.passwordSalt));
SELECT
UserAccounts.FirstName,
UserAccounts.LastName,
auth.*
FROM
auth,
UserAccounts
WHERE
auth.passwordHash = MD5(CONCAT(MD5('$eingegebenesPasswort'),':',auth.passwordSalt))
AND
auth.UUID = UserAccounts.PrincipalID;
Please Log in to join the conversation.
$password = htmlspecialchars($_POST["password"]);
//Passwort überprüfen
$abfrage = "SELECT * FROM auth WHERE passwordHash = MD5(CONCAT(MD5('$password'),':',passwordSalt))";
$ergebnis = mysql_query($abfrage,$verbindung_opensim);
$row = mysql_fetch_object($ergebnis);
Please Log in to join the conversation.
$passwort = mysql_real_escape_string(stripslashes($_POST["password"]));
...
$ergebnis = mysql_query($abfrage,$verbindung_opensim);
$zeilen = mysql_num_rows($ergebnis);
if($zeilen == 1) {
// wenn eine einzige Zeile retour kommt war das gültig
} else {
// das war ungültig (0 oder eher unwahrscheinliche mehrere Zeilen)
}
Please Log in to join the conversation.