]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/poche/Poche.class.php
working on registration support
[github/wallabag/wallabag.git] / inc / poche / Poche.class.php
index 81a18c8603b95af167876c943a02d6523c89d001..36c8693c15380d75940d6e2485682e4cbcfd548b 100755 (executable)
@@ -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');
+        }
     }
 
     /**