Skip to content

Instantly share code, notes, and snippets.

@Qaaj
Created February 25, 2016 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Qaaj/7c97cdc7364d89679ca3 to your computer and use it in GitHub Desktop.
Save Qaaj/7c97cdc7364d89679ca3 to your computer and use it in GitHub Desktop.
div.login-page
form(class='form-login', action='/web-login', method='POST')
input(type='text', name='username', placeholder='Username',required, autofocus)
input(type='password', name='password', placeholder='Password', required)
input(type='hidden', id='url', name='url')
button(class='btn', type='submit') Sign in
script(type='text/javascript').
document.getElementById("url").value = window.location.hash;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment