From 851ca7fae53e5afbb89472c03c9072aec7eb0f68 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Sat, 1 Oct 2022 19:32:40 +0100 Subject: [PATCH] Always set a random password for new portal users. This isn't an issue at the moment as we don't allow logins with empty passwords but better to be safe. --- portal/login_reset.php | 1 + post.php | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 portal/login_reset.php diff --git a/portal/login_reset.php b/portal/login_reset.php new file mode 100644 index 00000000..b3d9bbc7 --- /dev/null +++ b/portal/login_reset.php @@ -0,0 +1 @@ + 0){ mysqli_query($mysqli,"UPDATE clients SET primary_contact = $contact_id WHERE client_id = $client_id"); }