adjust captchas
This commit is contained in:
parent
099c2bc13c
commit
36e1027fb7
|
@ -16,14 +16,15 @@ const HOST = process.env.HOST || 'localhost';
|
||||||
|
|
||||||
const server = http.createServer((req, res) => {
|
const server = http.createServer((req, res) => {
|
||||||
const captcha = ppfunCaptcha.create({
|
const captcha = ppfunCaptcha.create({
|
||||||
width: 700,
|
width: 500,
|
||||||
height: 500,
|
height: 300,
|
||||||
fontSize: 600,
|
fontSize: 220,
|
||||||
stroke: 'black',
|
stroke: 'black',
|
||||||
fill: 'none',
|
fill: 'none',
|
||||||
background: 'white',
|
nodeDeviation: 3.0,
|
||||||
nodeDeviation: 0.5,
|
connectionPathDeviation: 3.0,
|
||||||
connectionPathDeviation: 0.3,
|
style: 'stroke-width: 4;',
|
||||||
|
background: '#EFEFEF',
|
||||||
});
|
});
|
||||||
|
|
||||||
const ip = getIPFromRequest(req);
|
const ip = getIPFromRequest(req);
|
||||||
|
|
|
@ -49,7 +49,8 @@ const Captcha = ({ callback, close }) => {
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
top: '50%',
|
top: '50%',
|
||||||
left: '50%',
|
left: '50%',
|
||||||
transform: `scale(${(imgLoaded) ? '1' : '0'}) translate(-50%,-50%)`,
|
opacity: (imgLoaded) ? 1 : 0,
|
||||||
|
transform: 'translate(-50%,-50%)',
|
||||||
transition: '100ms',
|
transition: '100ms',
|
||||||
}}
|
}}
|
||||||
src={captchaUrl}
|
src={captchaUrl}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user