Im trying to change the text in the login page of shinymanager in R with html code in my script, but it doesn't work. For example I want to change the username by "usuario" and the colors of the frame. Does anyone knows how to do it? Thanks, here is my code.
library(shiny)
library(ggplot2)
library(shinydashboard)
library(DT)
library(dplyr)
library(shinyWidgets)
library(data.table)
library(png)
library(shinyjs)
library(shinythemes)
library(shinycssloaders)
library(sodium)
library(lubridate)
library(glue)
library(shinymanager)
## estructura shiny ##
inactivity <- "function idleTimer() {
var t = setTimeout(logout, 120000);
window.onmousemove = resetTimer; // catches mouse movements
window.onmousedown = resetTimer; // catches mouse movements
window.onclick = resetTimer; // catches mouse clicks
window.onscroll = resetTimer; // catches scrolling
window.onkeypress = resetTimer; //catches keyboard actions
function logout() {
window.close(); //close the window
}
function resetTimer() {
clearTimeout(t);
t = setTimeout(logout, 120000); // time is in milliseconds (1000 is 1 second)
}
}
idleTimer();"
ui <- secure_app(
head_auth = tags$script(inactivity),...
(normal ui code),
)
server <- function(input, output, session) {
result_auth <- secure_server(check_credentials = check_credentials(credentials)),...
(normal server code),
}
shinyApp(ui = ui, server = server)
