updated a whole bunch of stuff

This commit is contained in:
2019-05-24 20:18:37 +02:00
parent 4a050eda84
commit ec5a13ccd1
9 changed files with 36 additions and 10 deletions

View File

@@ -0,0 +1,7 @@
<?php
include_once("./controller/UserSession.php");
if(UserSession::isSessionValid()){
Database::invalidateSession(UserSession::getSession()->token);
}
session_destroy();
?>

View File

@@ -18,7 +18,7 @@ if(HUtils::issetPost(['email', 'pass', 'pass2', 'name'])){
Database::registerUser($email, $pass, $name);
$uid = Database::getUID($email, $pass);
Database::registerActivationKey($uid,$verificationKey);
$message = 'Please follow the link to verify your account: http://localhost/webforum_redux/index.php?p=verify&key='.$verificationKey;
$message = 'Please follow the link to verify your account: http://localhost/webforum_redux/hforumphp/dev_mvc/index.php?p=verify&key='.$verificationKey;
$headers = 'From: webmaster@example.com' . "\r\n" .
'Reply-To: webmaster@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();