Skip to content

Commit

Permalink
Fixed bug #984: Can not create users/groups when on mssql server
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@2991 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Jun 13, 2007
1 parent 3ce5cbd commit 5a8d6d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion admin/usercontrol.php
Expand Up @@ -169,6 +169,9 @@
$new_user = html_entity_decode($_POST['new_user']);
$new_email = html_entity_decode($_POST['new_email']);
$new_full_name = html_entity_decode($_POST['new_full_name']);
$new_user = $_POST['new_user'];
$new_email = $_POST['new_email'];
$new_full_name = html_entity_decode($_POST['new_full_name']);
$valid_email = true;

if(!validate_email($new_email))
Expand All @@ -184,7 +187,7 @@
elseif($valid_email)
{
$new_pass = createPassword();
$uquery = "INSERT INTO {$dbprefix}users VALUES (NULL, '$new_user', '".SHA256::hash($new_pass)."', '{$new_full_name}', {$_SESSION['loginID']}, '{$defaultlang}', '{$new_email}',0,0,0,0,0,0,0)";
$uquery = "INSERT INTO {$dbprefix}users (users_name, password,full_name,parent_id,lang,email,create_survey,create_user,delete_user,move_user,configurator,manage_template,manage_label) VALUES ('{$new_user}', '".SHA256::hash($new_pass)."', '{$new_full_name}', {$_SESSION['loginID']}, '{$defaultlang}', '{$new_email}',0,0,0,0,0,0,0)";
$uresult = $connect->Execute($uquery);

if($uresult)
Expand Down

0 comments on commit 5a8d6d9

Please sign in to comment.