Skip to content

Commit 7f8cb2d

Browse files
authored
Merge pull request #18 from dfarrow0/dev
fix user registration
2 parents 77d3729 + 7ed7853 commit 7f8cb2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/common/database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ function registerUser($dbh, &$output, $name, $email, $adminEmail) {
999999
$hash = strtoupper(substr($output['user_hash'], 0, 8));
10001000
$subject = mysqli_real_escape_string('Welcome to Crowdcast!');
10011001
$body = mysqli_real_escape_string(sprintf("Hi %s,\r\n\r\nWelcome to Crowdcast (formerly known as Epicast)! Here's your User ID: %s\r\nYou can login and begin forecasting here: https://delphi.cmu.edu/epicast/launch.php?user=%s\r\n\r\nThank you,\r\nThe Delphi Team\r\n\r\n[This is an automated message. Please direct all replies to: %s. Unsubscribe: https://delphi.cmu.edu/epicast/preferences.php?user=%s]", $name, $hash, $hash, $adminEmail, $hash));
1002-
$dbh->query("INSERT INTO automation.email_queue (`from`, `to`, `subject`, `body`) VALUES ('[email protected]', '{$email}', '{$subject}', '{$body}')");
1002+
$dbh->query("INSERT INTO automation.email_queue (`from`, `to`, `subject`, `body`, `priority`, `timestamp`) VALUES ('[email protected]', '{$email}', '{$subject}', '{$body}', 0.9, UNIX_TIMESTAMP(NOW()))");
10031003
$dbh->query("CALL automation.RunStep(2)");
10041004
setResult($output, 1);
10051005
return getResult($output);

0 commit comments

Comments
 (0)