diff --git a/languages/en-us.js b/languages/en-us.js index 4e2d180..90893c2 100644 --- a/languages/en-us.js +++ b/languages/en-us.js @@ -66,6 +66,9 @@ module.exports.strings = { CONFIRM_ACCOUNT_SET_PW_TEXT: name => `Hello ${name}! Please set your password here.`, CONFIRM_ACCOUNT_SUCCESS: `Welcome to ${_CC.config.siteTitle}!`, LOGIN_BUTTON: 'Log In', + LOGIN_GUEST_PASSWORD_PLACEHOLDER: 'p4ssw0rd;', + LOGIN_GUEST_PASSWORD: 'Guest Password', + LOGIN_GUEST: 'Log In as a Guest', LOGIN_PASSWORD_PLACEHOLDER: 'pa$$word!', LOGIN_PASSWORD: 'Password', LOGIN_USERNAME_PLACEHOLDER: 'john', diff --git a/views/login.pug b/views/login.pug index 5c3fc5b..53099e4 100644 --- a/views/login.pug +++ b/views/login.pug @@ -17,4 +17,16 @@ block content .field .control input.button.is-primary(type='submit' value=lang('LOGIN_BUTTON')) - + if _CC.config.guestPassword + hr + h3= lang('LOGIN_GUEST') + form(method='POST', action='/login/guest') + .field + label.label= lang('LOGIN_GUEST_PASSWORD') + .control.has-icons-left + input.input(type='password', name='guestpassword', placeholder=lang('LOGIN_GUEST_PASSWORD_PLACEHOLDER')) + span.icon.is-small.is-left + i.fas.fa-lock + .field + .control + input.button.is-primary(type='submit', value=lang('LOGIN_BUTTON')) \ No newline at end of file