Scala securesocial在保存时重定向用户

Scala securesocial在保存时重定向用户,scala,playframework-2.0,securesocial,Scala,Playframework 2.0,Securesocial,我正在尝试使用securesocial plugin for Play进行身份验证!框架2.2。 我正在实现自己版本的UserService。 当有人第一次使用Facebook、Twitter或其他身份登录我的网站时,我想将他重定向到注册页面,收集更多关于他的信息,并让他接受我的条款和条件。 我怎样才能做到这一点 谢谢你的帮助 上午 我猜你的档案是这样的 securesocial.conf routes.conf def index = SecuredAction { implici

我正在尝试使用securesocial plugin for Play进行身份验证!框架2.2。 我正在实现自己版本的UserService。 当有人第一次使用Facebook、Twitter或其他身份登录我的网站时,我想将他重定向到注册页面,收集更多关于他的信息,并让他接受我的条款和条件。 我怎样才能做到这一点

谢谢你的帮助

上午 我猜你的档案是这样的

securesocial.conf

routes.conf

      def index = SecuredAction { implicit request =>
        // Check if user is logging in for the first-time... or other logic
        if(true){//If logic for redirection meets
        Redirect(routes.Application.step2)
        }else{
        println("Home")
        Ok(views.html.index(request.user))
        }
      }

  def step2 = SecuredAction { implicit request =>
        //Gather Other data... point to another form, your choice
        Ok(views.html.step2(request.user))
      }
    securesocial {
        onLoginGoTo=/
GET     /                           controllers.Application.index
GET /step2              controllers.AmazonController.step2 //Additional Route