summaryrefslogtreecommitdiff
path: root/htaccess.sample
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-08-26 20:19:27 -0400
committerEvan Prodromou <evan@prodromou.name>2008-08-26 20:19:27 -0400
commite248066b74aa697a1dfd99153b1e8c2e18f32831 (patch)
tree38be118593b899768755da8b74efdb6738dd44fd /htaccess.sample
parentc2839a80f00991fa4fe6ec3d3fd654bcc27840f4 (diff)
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
Diffstat (limited to 'htaccess.sample')
-rw-r--r--htaccess.sample1
1 files changed, 1 insertions, 0 deletions
diff --git a/htaccess.sample b/htaccess.sample
index db8c43e74..982b60578 100644
--- a/htaccess.sample
+++ b/htaccess.sample
@@ -22,6 +22,7 @@ RewriteRule ^doc/source$ index.php?action=doc&title=source [L,QSA]
RewriteRule ^main/login$ index.php?action=login [L,QSA]
RewriteRule ^main/logout$ index.php?action=logout [L,QSA]
+RewriteRule ^main/register/(.*)$ index.php?action=register&code=$1 [L,QSA]
RewriteRule ^main/register$ index.php?action=register [L,QSA]
RewriteRule ^main/openid$ index.php?action=openidlogin [L,QSA]
RewriteRule ^main/remote$ index.php?action=remotesubscribe [L,QSA]