def revokeConfirmation()

in app/controllers/RevokePermissions.scala [49:71]


  def revokeConfirmation(accountId: Option[String]) = authAction {
    implicit request =>
      if (accountId.isEmpty)
        Ok(views.html.revokeConfirmation(None, request.user, janusData))
      else {
        (for {
          account <- accountId
            .flatMap(aId => janusData.accounts.find(aId == _.authConfigKey))
        } yield {
          Ok(
            views.html
              .revokeConfirmation(Some(account), request.user, janusData)
          )
        }) getOrElse {
          logger.warn(
            s"Account not found: REVOKE confirmation screen for $accountId by ${username(request.user)}"
          )
          NotFound(
            views.html.error("Account not found", Some(request.user), janusData)
          )
        }
      }
  }