aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2011-12-01 22:35:37 +0100
committerKevin Chabowski <kevin@kch42.de>2011-12-01 22:35:37 +0100
commit22a9c9bd34c526004d39d7035d01fbd5b4d30c7d (patch)
tree7920eeea2f11a5e51bac25e6121cd77a927f8dfd /ratatoeskr
parent9162586f7124b09b3e4192a11dbda41659d4f519 (diff)
downloadratatoeskr-cms-22a9c9bd34c526004d39d7035d01fbd5b4d30c7d.tar.gz
ratatoeskr-cms-22a9c9bd34c526004d39d7035d01fbd5b4d30c7d.tar.bz2
ratatoeskr-cms-22a9c9bd34c526004d39d7035d01fbd5b4d30c7d.zip
mail and fullname are not longer required to create a user.
Diffstat (limited to 'ratatoeskr')
-rw-r--r--ratatoeskr/sys/models.php12
1 files changed, 5 insertions, 7 deletions
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 - <PasswordHash> 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;