Added 'login' command that gives you a link that can be used to login to the website

This commit is contained in:
Craig Andrews
2009-12-05 21:03:27 -05:00
parent cb2966a64c
commit 75cac0fd6b
10 changed files with 121 additions and 9 deletions

View File

@@ -88,6 +88,8 @@ class Router
$m->connect('doc/:title', array('action' => 'doc'));
$m->connect('main/login?user_id=:user_id&token=:token', array('action'=>'login'), array('user_id'=> '[0-9]+', 'token'=>'.+'));
// main stuff is repetitive
$main = array('login', 'logout', 'register', 'subscribe',