It has been added (on next 2.3.0) all about to correctly handle in WP, a deactivated/banned user in phpBB.
Only a mention about how the thing work about
deactivated/banned phpBB users in WordPress:
If an user has been banned by
username or
email in phpBB, then when action done by an admin (not sure if it is the same if done by moderator on mcp, not tested), his session also is being removed from database.
Then at this time, if an user is still logged into wordpress and navigating it, will be suddenly logged out and no warning will display, since will be impossible to retrieve user's data (no session will be found).
When same user will try then to login, a message informing about what happen will display: phpBB ban reason msg could be also added as error message in WP, actually as code it is a simple
Notice: your username, IP or email results to be banned into our forum. Please contact an administrator to resolve this issue.
will display, or in case it is deactivated:
Notice: your account results to be deactivated into our forum. Please contact an administrator to resolve this issue.
While if an user deleted in WordPress, then it is deactivated in phpBB without deleting his session (a deleted WP user is ever Deactivated, NOT deleted in phpBB). In this case, the user will be logged out, redirected to login page, and the warning message will display immediately.
*
The
w3_phpbb_ban() function, now correctly check for expired bans and handle all phpBB ban possibilities, cleanup unwanted, speedup code execution.
If an user try to login into WordPress and result to be banned or deactivated, it is informed as above explained, and if not existent already,
will NOT be added into WordPress.
2.3.0 is coming (so) soon with more very important fixes!
*
p.s
mhh ... just thinking beside all, if it would not be better to reset any user's phpBB session, when user deleted in wordpress.
I just think it is better to do what phpBB do,
so when user deleted in wordpress, it will be deactivated in phpBB, and any session that belong to this user, deleted/removed.