From bb54dda5f9a15a526c8451cd18205282ab55f84e Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Sun, 23 Feb 2020 22:26:00 +0100 Subject: [PATCH] fixed syntax error --- threadr/signup/index.php | 8 ++++---- threadr/signup/verify-email/index.php | 14 +++++++++----- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/threadr/signup/index.php b/threadr/signup/index.php index 73aa6b8..2016e0e 100644 --- a/threadr/signup/index.php +++ b/threadr/signup/index.php @@ -23,10 +23,10 @@
Sign Up:
diff --git a/threadr/signup/verify-email/index.php b/threadr/signup/verify-email/index.php index 81d979b..5d69f84 100644 --- a/threadr/signup/verify-email/index.php +++ b/threadr/signup/verify-email/index.php @@ -13,9 +13,15 @@ return $random_string; } - $random_salt = generate_salt($permitted_chars); + //for password hashing + $password_salt = generate_salt($permitted_chars); $password_hash_method = "sha256"; + //for token generation + $token_salt = generate_salt($permitted_chars); + $token_hashes = hash("crc32", $_POST['email']) . hash("crc32", $_POST['username']); + $token = str_shuffle($token_hashes . $token_salt); + ?> @@ -51,11 +57,9 @@Bitte senden sie eine E-Mail mit folgendem Inhalt an signup@lostcave.ddnss.de:
- signup@lostcave.ddnss.de +Bitte senden sie eine E-Mail mit folgendem Inhalt an signup@lostcave.ddnss.de: