X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/5015c85cb1789bbc2da53966fa37f7f29a1a7570..4225314ca50f26eaecfc828a1608b7d81c274a82:/plugins/sql_auth/SQL/user.php diff --git a/plugins/sql_auth/SQL/user.php b/plugins/sql_auth/SQL/user.php index 074a369..440cb9c 100644 --- a/plugins/sql_auth/SQL/user.php +++ b/plugins/sql_auth/SQL/user.php @@ -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']))