by axew3 » Fri Jan 29, 2021 8:50 am
Hello dear!
With no mismatching email/usernames pairs between wp/phpBB you can let users register only in phpBB, and if you like this way you have to be sure that when an user register in phpBB, his username will contain only allowed characters in wp, so when will be added in wordpress will be exactly the same and not purged of some unwanted chars (allow letters, numbers and spaces for phpBB), resulting after into an integration with mismatching usernames/email pairs.
When an email update happen in phpBB, and then the user come in wordpress, the code will check for matching email, that since it is changed in phpBB will not match anymore for the user. At this time and this case, the code check so for username: if it is found, then the update will occur based on username. So you can argue that usernames NEED to match in this case, or an update will occur based on data of some other user.
If there are users with mismatching email/usernames pairs you need to leave users to update email and register only in wordpress, because if not, an user could register in phpBB with an username that do not exist in phpBB, but exist in wordpress, because purged.
Ex : phpBB user %$£ABCD will be in wordpress ABCD: so what about if an user register in phpBB as ABCD because it do not exist in phpBB?
It is important to understand that the code run only in wordpress, so while if you let register/update users only in wordpress, the code check at same time and update at same time in phpBB. When user register in wordpress, the code check if there is an existing email or username in phpBB vefore to create the user. This can't be in phpBB side.
This is NOT the same when you let do the same in phpBB. This explain the above. This is the point.
If still something not clear or there is some mismatch in logic you note, please let know
Hello dear!
With no mismatching email/usernames pairs between wp/phpBB you can let users register only in phpBB, and if you like this way you have to be sure that when an user register in phpBB, his username will contain only allowed characters in wp, so when will be added in wordpress will be exactly the same and not purged of some unwanted chars (allow letters, numbers and spaces for phpBB), resulting after into an integration with mismatching usernames/email pairs.
When an email update happen in phpBB, and then the user come in wordpress, the code will check for matching email, that since it is changed in phpBB will not match anymore for the user. At this time and this case, the code check so for username: if it is found, then the update will occur based on username. So you can argue that usernames NEED to match in this case, or an update will occur based on data of some other user.
If there are users with mismatching email/usernames pairs you need to leave users to update email and register only in wordpress, because if not, an user could register in phpBB with an username that do not exist in phpBB, but exist in wordpress, because purged.
Ex : phpBB user [i]%$£ABCD[/i] will be in wordpress [i]ABCD[/i]: so what about if an user register in phpBB as [i]ABCD[/i] because it do not exist in phpBB?
It is important to understand that the code run only in wordpress, so while if you let register/update users only in wordpress, the code check at same time and update at same time in phpBB. When user register in wordpress, the code check if there is an existing email or username in phpBB vefore to create the user. This can't be in phpBB side.
This is NOT the same when you let do the same in phpBB. This explain the above. This is the point.
If still something not clear or there is some mismatch in logic you note, please let know