diff options
Diffstat (limited to 'modules/adduser.inc.php')
-rw-r--r-- | modules/adduser.inc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/adduser.inc.php b/modules/adduser.inc.php index f27717b..7bb6c1f 100644 --- a/modules/adduser.inc.php +++ b/modules/adduser.inc.php @@ -47,9 +47,9 @@ class Page_AddUser extends Page if ($ok === false) { Message::addError('Login-Suffix @{{0}} ist ungültig.', $suffix); } else { - Database::exec('INSERT INTO user (login, password, organizationid, firstname, lastname, email) ' - . ' VALUES (:login, :password, :organization, :firstname, :lastname, :email)', array( - 'login' => $login, + Database::exec('INSERT INTO user (userid, password, organizationid, firstname, lastname, email) ' + . ' VALUES (:userid, :password, :organization, :firstname, :lastname, :email)', array( + 'userid' => $login, 'password' => Crypto::hash6($password), 'organization' => $organizationid, 'firstname' => $firstname, |