Redirect to a one-time-password when ssl and regular server are different

This commit is contained in:
Evan Prodromou
2010-01-08 17:20:25 -08:00
parent f396701b64
commit ed5828f30e
5 changed files with 233 additions and 63 deletions

View File

@@ -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