debug(07-01): add detailed field value logging to registration
This commit is contained in:
@@ -300,6 +300,8 @@ class DDHH_JM_Formidable {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
error_log('DDHH Registration: Found field ' . $field->field_key . ' with value: ' . json_encode($value));
|
||||||
|
|
||||||
switch ( $field->field_key ) {
|
switch ( $field->field_key ) {
|
||||||
case 'email':
|
case 'email':
|
||||||
$email = sanitize_email( $value );
|
$email = sanitize_email( $value );
|
||||||
@@ -328,8 +330,9 @@ class DDHH_JM_Formidable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Validate passwords match
|
// Validate passwords match
|
||||||
|
error_log('DDHH Registration: Comparing passwords - pwd=' . json_encode($password) . ', confirm=' . json_encode($password_confirm));
|
||||||
if ( $password !== $password_confirm ) {
|
if ( $password !== $password_confirm ) {
|
||||||
error_log('DDHH Registration: Passwords do not match');
|
error_log('DDHH Registration: Passwords do not match (strict comparison)');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user