TimStats commited on
Commit
29f5854
·
verified ·
1 Parent(s): 29ab6f2

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +13 -13
app.R CHANGED
@@ -644,19 +644,19 @@ server <- function(input, output, session) {
644
  credentials <- reactiveValues(logged_in = FALSE)
645
 
646
  output$page <- renderUI({
647
- if (!credentials$logged_in) {
648
  # Login page
649
- div(class = "login-screen",
650
- div(class = "login-header",
651
- h2("Baseball Stats Visualization"),
652
- p("Please log in with your Patreon email")
653
- ),
654
- textInput("email", "Email:"),
655
- actionButton("login", "Login", class = "btn-primary"),
656
- p(style = "margin-top: 20px; text-align: center;",
657
- "Access requires Veteran or Hall of Fame tier on Patreon")
658
- )
659
- } else {
660
  # Main application UI (your existing UI)
661
  fluidPage(
662
  theme = bs_theme(version = 5, bootswatch = "flatly"),
@@ -689,7 +689,7 @@ server <- function(input, output, session) {
689
  )
690
  )
691
  )
692
- }
693
  })
694
  observeEvent(input$login, {
695
 
 
644
  credentials <- reactiveValues(logged_in = FALSE)
645
 
646
  output$page <- renderUI({
647
+ #if (!credentials$logged_in) {
648
  # Login page
649
+ #div(class = "login-screen",
650
+ # div(class = "login-header",
651
+ # h2("Baseball Stats Visualization"),
652
+ # p("Please log in with your Patreon email")
653
+ # ),
654
+ # textInput("email", "Email:"),
655
+ # actionButton("login", "Login", class = "btn-primary"),
656
+ # p(style = "margin-top: 20px; text-align: center;",
657
+ # "Access requires Veteran or Hall of Fame tier on Patreon")
658
+ #)
659
+ #} else {
660
  # Main application UI (your existing UI)
661
  fluidPage(
662
  theme = bs_theme(version = 5, bootswatch = "flatly"),
 
689
  )
690
  )
691
  )
692
+ #}
693
  })
694
  observeEvent(input$login, {
695