mirror of https://github.com/BOINC/boinc.git
svn path=/trunk/boinc/; revision=20404
This commit is contained in:
parent
1600c26206
commit
83353ad7f9
|
@ -26,21 +26,22 @@ $code = get_str("code");
|
||||||
$userid = get_int('userid');
|
$userid = get_int('userid');
|
||||||
$user = lookup_user_id($userid);
|
$user = lookup_user_id($userid);
|
||||||
if (!$user) {
|
if (!$user) {
|
||||||
error_page("no user");
|
error_page("no such user");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (salted_key($user->authenticator) != $code) {
|
if (salted_key($user->authenticator) != $code) {
|
||||||
error_page("bad code");
|
error_page("invalid code");
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = $user->update("send_email=0");
|
$result = $user->update("send_email=0");
|
||||||
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
page_head("$email removed from mailing list");
|
page_head("Removed from mailing list");
|
||||||
echo "
|
echo "
|
||||||
No further emails will be sent to $user->email_addr.
|
No further emails will be sent to $user->email_addr.
|
||||||
|
<p>
|
||||||
To resume getting emails,
|
To resume getting emails,
|
||||||
go <a href=".URL_BASE."prefs_edit.php?subset=project>here</a>
|
<a href=".URL_BASE."prefs_edit.php?subset=project>edit your project preferences</a>.
|
||||||
";
|
";
|
||||||
page_tail();
|
page_tail();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue