working on registration support

This commit is contained in:
Thomas Citharel
2015-01-23 16:34:56 +01:00
parent cdde19d609
commit 121691e900
8 changed files with 72 additions and 3 deletions

View File

@ -76,6 +76,7 @@ class Poche
*/
public function createNewUser($username, $password, $email = "")
{
Tools::logm('Trying to create a new user...');
if (!empty($username) && !empty($password)){
$newUsername = filter_var($username, FILTER_SANITIZE_STRING);
$email = filter_var($email, FILTER_SANITIZE_STRING);
@ -96,6 +97,9 @@ class Poche
Tools::redirect();
}
}
else {
Tools::logm('Password or username were empty');
}
}
/**