]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - plugins/sql_auth/SQL/user.php
Some casual fixes
[irc/unrealircd/unrealircd-webpanel.git] / plugins / sql_auth / SQL / user.php
index 074a36997fedacf34f061c143233d878631318d1..440cb9c8f9ab31a6e02da9e16df642f2cfd20f0d 100644 (file)
@@ -4,7 +4,7 @@ class SQLA_User
 {
     public $id = NULL;
     public $username = NULL;
-    protected $passhash = NULL;
+    private $passhash = NULL;
     public $first_name = NULL;
     public $last_name = NULL;
     public $user_meta = [];
@@ -68,6 +68,21 @@ class SQLA_User_Meta
     }
 }
 
+/**
+ * Array of user
+ * 
+ * Required:
+ * user_name
+ * user_pass
+ * 
+ * Optional:
+ * user_fname
+ * user_lname
+ * 
+ * @param array $user
+ * @throws Exception
+ * @return bool
+ */
 function create_new_user(array $user) : bool
 {
     if (!isset($user['user_name']) || !isset($user['user_pass']))