Skip to content
Snippets Groups Projects
Commit 21776382 authored by Iqbal's avatar Iqbal
Browse files

Removed decrypting function.

parent 67d4867f
Branches
No related merge requests found
......@@ -39,11 +39,9 @@ class User {
public static function GetAllUsernameAndPassword(PDO $conn) {
try {
include('../controller/Controller.php');
$users = $conn->query("SELECT username, password FROM user")->fetchAll();
foreach ($users as $record) {
$result[$record['username']] = simpleCrypt($record['password'], 'd');
$result[$record['username']] = $record['password'];
}
return $result;
} catch (PDOException $e) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment