From 75ee2e643d0cf927db98ce13752ab57d2185e155 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Thu, 13 Jan 2022 23:15:02 +0000 Subject: [PATCH] Initial add --- get_credential.php | 78 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 get_credential.php diff --git a/get_credential.php b/get_credential.php new file mode 100644 index 00000000..d0f840a4 --- /dev/null +++ b/get_credential.php @@ -0,0 +1,78 @@ + 0){ + $row = mysqli_fetch_array($sql_logins); + $data['found'] = "TRUE"; + $data['username'] = htmlentities($row['login_username']); + $data['password'] = decryptLoginEntry($row['login_password']); + echo json_encode($data); + } +} + +//TODO: Future work:- +// - Check user has permission to this client +// - Showing multiple logins for a single URL \ No newline at end of file