Skip to content

Commit b7e4866

Browse files
committed
fix issue with 'skipCaptcha' logging message showing 'undefined' value as error
1 parent 3ed93a6 commit b7e4866

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

server/src/main/java/password/pwm/util/CaptchaUtility.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ private static boolean checkIfCaptchaParamPresent( final PwmRequest pwmRequest )
351351
}
352352
else
353353
{
354-
LOGGER.error( pwmRequest, "skipCaptcha value is in request, however value '" + requestValue + "' does not match configured value" );
354+
LOGGER.debug( pwmRequest, () -> "skipCaptcha value is in request, however value '" + requestValue + "' does not match configured value" );
355355
}
356356
}
357357
}

webapp/src/main/webapp/public/resources/js/main.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,11 @@ PWM_MAIN.handleLoginFormSubmit = function(form, event) {
382382
options['content'] = domForm.toObject(form);
383383
delete options['content']['processAction'];
384384
delete options['content']['pwmFormID'];
385-
var url = 'login?processAction=restLogin&skipCaptcha=' + options['content']['skipCaptcha'];
385+
var url = 'login?processAction=restLogin';
386+
if (options['content']['skipCaptcha'])
387+
{
388+
PWM_MAIN.addParamToUrl( url, 'skipCaptcha', options['content']['skipCaptcha']);
389+
}
386390
var loadFunction = function(data) {
387391
if (data['error'] === true) {
388392
PWM_MAIN.getObject('password').value = '';

0 commit comments

Comments
 (0)