$pc->CheckPassword($password, $passwordConfirm, $failureRedirect);

$_SESSION['errorMessage'] = "";

//---------------------------------------------------------------------------------------------
//
//    preparing and performing query
//


//
// Check the CAPTCHA
//
if(USE_RECAPTCHA == true) {
	$captcha = new CCaptcha();
	if(!$captcha->CheckAnswer()) {
		$_SESSION['errorMessage'] = "Captcha: ej korrekta angivna ord!";
		unset($_SESSION['redirect']);
		header('Location: ' . WS_SITELINK . "?p=createa");
		exit;
		
}
}

$result = ARRAY();
$PCreateAccount = DBSP_PCreateAccount;
$pwdHash = DB_PASSWORDHASHING;


$query = <<< EOD
	CALL {$PCreateAccount}(@pUserId, '{$username}', '{$group}', '{$password}', '{$pwdHash}', @pStatus);