login
This commit is contained in:
28
interfaceServices/registration_NOT_USED.php
Normal file
28
interfaceServices/registration_NOT_USED.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
$userName = $_GET("username");
|
||||
$password = $_GET("password");
|
||||
$id = $username . $date->getTimestamp();
|
||||
|
||||
$returnData = array();
|
||||
$date = new DateTime();
|
||||
|
||||
$passwordSalt = "sexfamemoney$U046qKlL$moneyfamesex";
|
||||
|
||||
|
||||
$hashedPassword = crypt( $password, $passwordSalt );
|
||||
$hashedId = crypt( $id, $passwordSalt );
|
||||
|
||||
/*
|
||||
For login:
|
||||
if (hash_equals($hashed_password, crypt($user_input, $hashed_password))) {
|
||||
echo "Password verified!";
|
||||
}
|
||||
*/
|
||||
|
||||
$returnData["password"] = $hashed_password;
|
||||
$returnData["id"] = $hashedId;
|
||||
|
||||
echo( json_encode( $returnData ) );
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user