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: