Commit 089ff494 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Add email to testbed-audit when user does his verification, as per

Jay's request. Its all I can handle before coffee.
parent 0783801e
......@@ -51,6 +51,16 @@ if (strcmp($status, "unverified") == 0) {
TBERROR("Database Error setting status for $uid: $err\n", 1);
}
TBMAIL($TBMAIL_AUDIT,
"User '$uid' has been verified",
"\n".
"User '$uid' has been verified.\n".
"Status has been changed from 'unverified' to 'active'\n".
"\n".
"Testbed Ops\n",
"From: $TBMAIL_OPS\n".
"Errors-To: $TBMAIL_WWW");
echo "<p>".
"Because your project leader has already approved ".
"your membership in the project, you are now an active user ".
......@@ -65,6 +75,16 @@ elseif (strcmp($status, "newuser") == 0) {
TBERROR("Database Error setting status for $uid: $err\n", 1);
}
TBMAIL($TBMAIL_AUDIT,
"User '$uid' has been verified",
"\n".
"User '$uid' has been verified.\n".
"Status has been changed from 'newuser' to 'unapproved'\n".
"\n".
"Testbed Ops\n",
"From: $TBMAIL_OPS\n".
"Errors-To: $TBMAIL_WWW");
echo "<p>".
"You have now been verified. However, your application ".
"has not yet been approved by the project leader. You will receive ".
......
Supports Markdown
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