Commit 52dd6889 authored by Ms Kimsible's avatar Ms Kimsible
Browse files

Use MTCaptcha mini

parent 60fbd3a3
......@@ -20,17 +20,18 @@ function initMTC(registerHook, peertubeHelpers) {
window.mtcaptchaConfig = {
'sitekey': s['mtcaptcha-site-key'],
'render': 'explicit',
'widgetSize': 'mini',
'miniFormWidth': 265,
'miniFormHeight': 42,
'customStyle': {
'cardColor': '#FAFAFA',
'inputTextColor': '#444444',
'msgTextColor': '#777777',
'invalidMsgTextColor': '#F74E39',
'cardBorder': '#C6C6C6',
'inputBackgroundColor': '#FAFAFA',
'inputBorderColor': {
'byDefault': '#FAFAFA',
'hover': '#FAFAFA',
'active': '#FAFAFA'
}
'byDefault': '#C6C6C6',
'hover': '#C6C6C6',
'active': '#C6C6C6'
}
},
'verified-callback': state => window.MTCaptchaLoadCallbackResponse = state.verifiedToken,
'renderQueue': []
......@@ -72,6 +73,7 @@ async function insertMTCaptchaContainer (stepperSelector) {
const div = document.createElement('div')
div.id = `mtcaptcha-${Math.random().toString(16).slice(2)}`
div.classList.add('mtcaptcha')
div.style = 'width:270px;height:85px;display:flex;align-items:center;margin:auto'
stepper.appendChild(div)
return div.id
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment