forked from wallabag/wallabag
working on registration support
This commit is contained in:
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user