diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-11-02 18:40:18 -0500 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-11-02 18:40:49 -0500 |
commit | b9d40f723bce8e01ddcbbb989bd7035b92cd9af8 (patch) | |
tree | a995cf45dbd3d913ba31bd097a5f14cf72a8c095 /lib/router.php | |
parent | a2b830392597d88c435baf54ad0df4ecda02dc41 (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 888cbdd20..0ddda473c 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', |