html5 patern for captcha text input 6 characters

merge-requests/208/head
fatchan 5 years ago
parent f0f811bd25
commit 4f03bd1ac7
  1. 2
      gulp/res/css/style.css
  2. 2
      views/includes/actionfooter.pug
  3. 2
      views/includes/postform.pug
  4. 2
      views/pages/changepassword.pug
  5. 2
      views/pages/register.pug

@ -605,7 +605,7 @@ input[type="file"] {
.postform-col {
flex-direction: column;
flex-grow: 1;
align-items: end;
/*align-items: end;*/
}
.postform-style {

@ -60,5 +60,5 @@ details.toggle-label
.actions
h4.no-m-p Captcha:
iframe.captcha(src='/captcha.html' width=200 height=110 scrolling='no')
input#captcha(type='text', name='captcha', autocomplete='off' placeholder='captcha text' maxlength='6' required)
input#captcha(type='text', name='captcha', autocomplete='off' placeholder='captcha text' pattern=".{6}" required title='6 characters')
input(type='submit', value='submit')

@ -53,7 +53,7 @@ section.form-wrapper.flex-center
.required *
.postform-col
iframe.captcha(src='/captcha.html' width=200 height=110 scrolling='no')
input(type='text', name='captcha', autocomplete='off' placeholder='captcha text' maxlength='6' required)
input(type='text', name='captcha', autocomplete='off' placeholder='captcha text' pattern=".{6}" required title='6 characters')
if !isThread && ((board.settings.forceOPFile && board.settings.maxFiles > 0) || board.settings.forceOPMessage || board.settings.forceOPSubject)
small
span.required *

@ -28,7 +28,7 @@ block content
.required *
span.postform-col
iframe.captcha(src='/captcha.html' width=200 height=110 scrolling='no')
input#captcha(type='text', name='captcha', autocomplete='off' placeholder='captcha text' maxlength='6' required)
input#captcha(type='text', name='captcha', autocomplete='off' placeholder='captcha text' pattern=".{6}" required title='6 characters')
input(type='submit', value='Change Password')
p: a(href='/login.html') Login
p: a(href='/register.html') Register

@ -24,7 +24,7 @@ block content
.required *
span.postform-col
iframe.captcha(src='/captcha.html' width=200 height=110 scrolling='no')
input#captcha(type='text', name='captcha', autocomplete='off' placeholder='captcha text' maxlength='6' required)
input#captcha(type='text', name='captcha', autocomplete='off' placeholder='captcha text' pattern=".{6}" required title='6 characters')
input(type='submit', value='Register')
p: a(href='/login.html') Login
p: a(href='/changepassword.html') Change Password

Loading…
Cancel
Save