diff options
author | Thomas Citharel <tcit@tcit.fr> | 2015-01-23 16:34:56 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2015-01-23 16:34:56 +0100 |
commit | 121691e90026dcfaaecef0a1db07d40cd43a9278 (patch) | |
tree | 43e5f079b926c7c79b265c1453c90a12c6f0486b /inc/poche/Poche.class.php | |
parent | cdde19d6096c85a3ed9b9399482bcc04bb79583c (diff) | |
download | wallabag-121691e90026dcfaaecef0a1db07d40cd43a9278.tar.gz wallabag-121691e90026dcfaaecef0a1db07d40cd43a9278.tar.zst wallabag-121691e90026dcfaaecef0a1db07d40cd43a9278.zip |
working on registration support
Diffstat (limited to 'inc/poche/Poche.class.php')
-rwxr-xr-x | inc/poche/Poche.class.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 81a18c86..36c8693c 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -76,6 +76,7 @@ class Poche | |||
76 | */ | 76 | */ |
77 | public function createNewUser($username, $password, $email = "") | 77 | public function createNewUser($username, $password, $email = "") |
78 | { | 78 | { |
79 | Tools::logm('Trying to create a new user...'); | ||
79 | if (!empty($username) && !empty($password)){ | 80 | if (!empty($username) && !empty($password)){ |
80 | $newUsername = filter_var($username, FILTER_SANITIZE_STRING); | 81 | $newUsername = filter_var($username, FILTER_SANITIZE_STRING); |
81 | $email = filter_var($email, FILTER_SANITIZE_STRING); | 82 | $email = filter_var($email, FILTER_SANITIZE_STRING); |
@@ -96,6 +97,9 @@ class Poche | |||
96 | Tools::redirect(); | 97 | Tools::redirect(); |
97 | } | 98 | } |
98 | } | 99 | } |
100 | else { | ||
101 | Tools::logm('Password or username were empty'); | ||
102 | } | ||
99 | } | 103 | } |
100 | 104 | ||
101 | /** | 105 | /** |