diff options
author | Evan Prodromou <evan@status.net> | 2010-01-08 17:20:25 -0800 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-01-09 15:26:06 -0800 |
commit | ed5828f30ea0f7a30e01d407058990b06164c6f3 (patch) | |
tree | 7ad837785d6c6ea5156092543857df6447812a58 /lib/router.php | |
parent | f396701b6466749c09ce16b1e7f2f96c10b05cdd (diff) |
Redirect to a one-time-password when ssl and regular server are different
Diffstat (limited to 'lib/router.php')
-rw-r--r-- | lib/router.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/router.php b/lib/router.php index 287d3c79f..4128741a8 100644 --- a/lib/router.php +++ b/lib/router.php @@ -88,7 +88,10 @@ 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'=>'.+')); + $m->connect('main/otp/:user_id/:token', + array('action' => 'otp'), + array('user_id' => '[0-9]+', + 'token' => '.+')); // main stuff is repetitive |