-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
Specifically happens when the user doesn't have UserName and ParticipantEmail.
This code ejects:
skautis-integration/src/php/src/modules/Register/class-wp-register.php
Lines 166 to 168 in 25344e0
| if ( mb_strlen( $user['UserName'] ) === 0 ) { | |
| return false; | |
| } |
and this code causes the empty data:
skautis-integration/src/php/src/repository/class-users.php
Lines 215 to 224 in 25344e0
| if ( isset( $participant->PersonEmail ) && ! empty( $participant->PersonEmail ) ) { | |
| $emails = preg_split( '~(?=\,)~x', $participant->PersonEmail ); | |
| if ( ! empty( $emails ) && isset( $emails[0] ) ) { | |
| $user->email = $emails[0]; | |
| } | |
| } else { | |
| $user->email = ''; | |
| } | |
| $user->UserName = $user->email; |