more login work
This commit is contained in:
17
interfaceServices/dbConfig.php
Normal file
17
interfaceServices/dbConfig.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
define('dbhost', 'localhost');
|
||||
define('dbuser', 'lazyp_workadmin');
|
||||
define('dbpass', 'GH5fZF0iCtLnHLrz');
|
||||
define('dbname', 'LudosData');
|
||||
|
||||
|
||||
try {
|
||||
$connect = new PDO("mysql:host=".dbhost."; dbname=".dbname, dbuser, dbpass);
|
||||
$connect->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
}
|
||||
catch(PDOException $e) {
|
||||
echo $e->getMessage();
|
||||
}
|
||||
|
||||
?>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1513,7 +1513,7 @@ class PHP_CRUD_API {
|
||||
|
||||
$passwordSalt = "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824";
|
||||
|
||||
$hashedPassword = crypt( $password, $passwordSalt );
|
||||
$hashedPassword = crypt( $input['password'], $passwordSalt );
|
||||
$hashedId = crypt( $id, $passwordSalt );
|
||||
|
||||
$input['password'] = $hashedPassword;
|
||||
|
||||
Reference in New Issue
Block a user