Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicated input ID shinymanager_language #198

Open
rayanramin opened this issue Sep 20, 2024 · 0 comments
Open

duplicated input ID shinymanager_language #198

rayanramin opened this issue Sep 20, 2024 · 0 comments

Comments

@rayanramin
Copy link

Hi, I'm new to shinymanager and have encountered an issue I can't figure out. I create an SQLite database like this:

library(shinymanager)
credentials <- data.frame(
    user = c("admin"),
    password = c("pass"),  
    admin = c(TRUE),        
    stringsAsFactors = FALSE
)

create_db(
    credentials_data = credentials,
    sqlite_path = "./database.sqlite", 
    passphrase = "This_is_my_app"  
)

And this is my minimal app :

library(shiny)
library(shinymanager)

ui <- secure_app(
  fluidPage(
    titlePanel("Admin Interface Test"),
    sidebarLayout(
      sidebarPanel(),
      mainPanel()
    )
  ),
  enable_admin = TRUE
)

server <- function(input, output, session) {
  secure_server(
    check_credentials = check_credentials(
      db = "./database.sqlite",
      passphrase = "This_is_my_app"
    )
  )
}

shinyApp(ui, server)

When I enter the Administrator mode, I get the following error:

Shiny Client Errors
Duplicate input/output IDs found
The following ID was repeated:

  • "shinymanager_language": 2 inputs

What am I missing here, and how to solve this problem? Thanks for any help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant