Skip to content

Instantly share code, notes, and snippets.

@olegpolyakov
Last active August 3, 2017 15:39
Show Gist options
  • Save olegpolyakov/64825808999e1bdd573ad3f10ea1d685 to your computer and use it in GitHub Desktop.
Save olegpolyakov/64825808999e1bdd573ad3f10ea1d685 to your computer and use it in GitHub Desktop.
form#login-form(method='post')
input(type='hidden' name='_csrf' value=_csrfToken)
+input('text', 'username', 'Имя пользователя', null, 'Только маленькие латинские буквы и цифры без пробелов')(minlength='2' maxlength='32' pattern='^[a-z0-9]+$')
+input('password', 'password', 'Пароль')(required maxlength='128')
button#submit(type='submit').mdc-button.mdc-button--accent.mdc-button--raised.mdc-button--full-width Войти
a(href='/auth/reset-password').mdc-button Забыли пароль?
a(href='/auth/register').mdc-button Зарегистрироваться
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment