+ $log->log_debug("redirect to /$s->{id}/index from softbank_serial_key");
+ my $view = new Keitairc::View($cf, $ci, $s->{id});
+ return $view->redirect("/$s->{id}/index");
+ }
+ }
+ }
+
+ if($ci->is_emobile()){
+ my $userid = $ci->emobile_userid();
+ if(length $userid){
+ if(my $s = $sm->verify({serial_key => $userid,
+ user_agent => $ci->user_agent()})){
+ $log->log_debug("redirect to /$s->{id}/index from userid");
+ my $view = new Keitairc::View($cf, $ci, $s->{id});
+ return $view->redirect("/$s->{id}/index");
+ }
+
+ if($userid eq $cf->emobile_userid()){
+ my $s = $sm->add($ci->user_agent(), $userid);
+ $log->log_debug("redirect to /$s->{id}/index from emobile_userid");