Commit 835ad11c authored by S.Holzhauer's avatar S.Holzhauer

le fix!

parent 589d0c1a
......@@ -29,7 +29,7 @@ if($operation == "add"){
$random = generateRandomString();
$name = $initials.$lastname;
$sql2 = "INSERT INTO `AccountCreds` ('Username','Password','Role','Account_AccountID')
VALUES ('$name','$random','$usertype',$lastid;";
VALUES ('$name','$random','$usertype',$last_id;";
$conn->query($sql2);
$Msg = "Today an account for Watchdad has been created for you with the role $usertype.
\n
......@@ -39,6 +39,7 @@ if($operation == "add"){
\n
\n Greetings IRP-WatchDad
\n This is an automated message do not respond to this email.";
$headers = 'From: <accountmanagement@irp.nl>';
mail($mail,"WatchDad Account Registerd","Dear $initials $Msg",$headers);
}
else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment