Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 583 Bytes

File metadata and controls

22 lines (18 loc) · 583 Bytes

Setting custom login screen

To customize tthe login screen, set the login.template property in the config passed to oauthHandler. VoiceCommerce uses pug for templating.

const oauthConfig = {
  login: {
    template: 'custom_login.pug'
  }
  clients: [...]
}

The login form should send a POST request to the the same URL, with username and password fields.

form(method="POST")
  input(type="text" name="username")
  input(type="password" name="password")
  input(type="submit" value="Submit")