Learn R Programming

shinyauthr (version 0.1.1)

loginUI: login UI module

Description

Shiny UI Module for use with login

Usage

loginUI(
  id,
  title = "Please log in",
  user_title = "User Name",
  pass_title = "Password",
  login_title = "Log in",
  error_message = "Invalid username or password!",
  additional_ui = NULL,
  cookie_expiry = 7
)

Arguments

id

Shiny id

title

header title for the login panel

user_title

label for the user name text input

pass_title

label for the password text input

login_title

label for the login button

error_message

message to display after failed login

additional_ui

additional shiny UI element to add below login button. Wrap multiple inside shiny::tagList()

cookie_expiry

number of days to request browser to retain login cookie

Value

Shiny UI

Details

Call via loginUI("your_id")