diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-12-05 21:03:27 -0500 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-12-05 21:05:33 -0500 |
commit | 75cac0fd6b94f77ec8ff32ebc89ec513ee102831 (patch) | |
tree | b84a71e22ee7d0437895cf8676730b42eb0c02ff /lib/router.php | |
parent | cb2966a64c618a90b84c7aac63e5193c054be3aa (diff) |
Added 'login' command that gives you a link that can be used to login to the website
Diffstat (limited to 'lib/router.php')
-rw-r--r-- | lib/router.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/router.php b/lib/router.php index 1a090861e..37525319f 100644 --- a/lib/router.php +++ b/lib/router.php @@ -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', |