From e248066b74aa697a1dfd99153b1e8c2e18f32831 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 26 Aug 2008 20:19:27 -0400 Subject: updates for invitations Add the code to registration to handle invitation codes. Some edge cases on invitations: is the user already subbed to this person? Tell them. Is the person already on the system? Sub the user to them, then, and tell the user. Add some code to User to auto-sub invitees whenever the email address changes. Call it from a new registration with an invite code, and also from confirmaddress. Some whitespace cleanup in the files touched. darcs-hash:20080827001927-84dde-b50e5d921ca3f2fb894821730ff93cac09d2ba66.gz --- actions/confirmaddress.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actions/confirmaddress.php') diff --git a/actions/confirmaddress.php b/actions/confirmaddress.php index 3cffda871..44280e08a 100644 --- a/actions/confirmaddress.php +++ b/actions/confirmaddress.php @@ -73,6 +73,10 @@ class ConfirmaddressAction extends Action { return; } + if ($type == 'email') { + $cur->emailChanged(); + } + $result = $confirm->delete(); if (!$result) { -- cgit v1.2.3-54-g00ecf