summaryrefslogtreecommitdiffstats
path: root/modules/adduser.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2015-09-10 15:15:28 +0200
committerSimon Rettberg2015-09-10 15:15:28 +0200
commit93d1acd95d1bf99d3f428abdd85078d1bac7119f (patch)
tree03e6169d4f1839b2a34ba9dd5b572a5de1c553b3 /modules/adduser.inc.php
parentAllow registration, add support for creating test accounts, rename satellite ... (diff)
downloadbwlp-webadmin-93d1acd95d1bf99d3f428abdd85078d1bac7119f.tar.gz
bwlp-webadmin-93d1acd95d1bf99d3f428abdd85078d1bac7119f.tar.xz
bwlp-webadmin-93d1acd95d1bf99d3f428abdd85078d1bac7119f.zip
Adapt to master-server changes (Db scheme)
Diffstat (limited to 'modules/adduser.inc.php')
-rw-r--r--modules/adduser.inc.php6
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,