fixed syntax error
parent
8b18036ab3
commit
bb54dda5f9
|
@ -23,7 +23,7 @@
|
|||
<div class="item-2 round-border">
|
||||
<p>Sign Up:</p>
|
||||
<form action="%CONTENT_DIR%/signup/verify-email/" method="post">
|
||||
<p>Benutzername: <input type="text" name="username" placeholder=Username"/> </p>
|
||||
<p>Benutzername: <input type="text" name="username" placeholder="Username" /> </p>
|
||||
<p>E-Mail: <input type="text" name="email" placeholder="email@example.com" /> </p>
|
||||
<p>Passwort: <input type="password" name="password" placeholder="Password" /> </p>
|
||||
<p>Passwort bestätigen: <input type="password" name="password_confirm" placeholder="Confirm password" /> </p>
|
||||
|
|
|
@ -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);
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
@ -51,11 +57,9 @@
|
|||
</h1>
|
||||
</div>
|
||||
<div class="item-2 round-border">
|
||||
<p>Bitte senden sie eine E-Mail mit folgendem Inhalt an <a href="mailto:signup@lostcave.ddnss.de?subject=signup&body=%TOKEN%">signup@lostcave.ddnss.de</a>:</p>
|
||||
<a href="mailto:signup@lostcave.ddnss.de?subject=signup&body=%TOKEN%">signup@lostcave.ddnss.de</a>
|
||||
<p>Bitte senden sie eine E-Mail mit folgendem Inhalt an <a href="mailto:signup@lostcave.ddnss.de?subject=signup&body=<?php echo $token; ?>">signup@lostcave.ddnss.de</a>:</p>
|
||||
<form action="%CONTENT_DIR%/signup/verify-email/redirect.php" method="post">
|
||||
<!-- TODO: add token generator -->
|
||||
<p>%TOKEN%</p>
|
||||
<p><?php echo $token; ?></p>
|
||||
<input type="submit" value="Weiter" />
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue