From 22a9c9bd34c526004d39d7035d01fbd5b4d30c7d Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Thu, 1 Dec 2011 22:35:37 +0100 Subject: mail and fullname are not longer required to create a user. --- ratatoeskr/sys/models.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'ratatoeskr/sys') diff --git a/ratatoeskr/sys/models.php b/ratatoeskr/sys/models.php index b488ebf..2b8c532 100644 --- a/ratatoeskr/sys/models.php +++ b/ratatoeskr/sys/models.php @@ -97,13 +97,11 @@ class User * Parameters: * $username - The username * $pwhash - of the password - * $mail - E-Mail-address - * $fullname - The full name. * * Returns: * An User object */ - public static function create($username, $pwhash, $mail, $fullname) + public static function create($username, $pwhash) { try { @@ -112,15 +110,15 @@ class User catch(DoesNotExistError $e) { global $ratatoeskr_settings; - qdb("INSERT INTO `PREFIX_users` (`username`, `pwhash`, `mail`, `fullname`, `language`) VALUES ('%s', '%s', '%s', '%s', '%s')", - $username, $pwhash, $mail, $fullname, $ratatoeskr_settings["default_language"]); + qdb("INSERT INTO `PREFIX_users` (`username`, `pwhash`, `mail`, `fullname`, `language`) VALUES ('%s', '%s', '', '', '%s')", + $username, $pwhash, $ratatoeskr_settings["default_language"]); $obj = new self; $obj->id = mysql_insert_id(); $obj->username = $username; $obj->pwhash = $pwhash; - $obj->mail = $mail; - $obj->fullname = $fullname; + $obj->mail = ""; + $obj->fullname = ""; $obj->language = $ratatoeskr_settings["default_language"]; return $obj; -- cgit v1.2.3-70-g09d2