datastorm-open / shinymanager

Simple and secure authentification mechanism for single shiny applications.
https://datastorm-open.github.io/shinymanager/
386 stars 79 forks source link

Set_Labels Img Src #64

Closed JoaquinTavella closed 3 years ago

JoaquinTavella commented 3 years ago

Hi! first of all thank you for this amazing package. I would like to know if it's possible to put a img insteed of please authenticate

set_labels(language = "en", "Please authenticate" = tags$img(src="https://i.ibb.co/vQv7gyr/logovertical.png"))

I used this but it only shows the image for a second and then dissapear, can you help me with this?

pvictor commented 3 years ago

Hi,

You can use an image directly in secure_app:

secure_app(
  ui = ui, 
  tags_top = tagList(
    tags$img(src = "https://www.r-project.org/logo/Rlogo.png", width = 100)
  )
)

To remove "Please authenticate", you can set the label as NULL.

Victor