rtCamp / login-with-google

Minimal plugin which allows WordPress user to login with google.
https://wordpress.org/plugins/login-with-google/
GNU General Public License v2.0
65 stars 19 forks source link

Additional User Capabilities - Won't Login #168

Open bjones-sperofs opened 12 months ago

bjones-sperofs commented 12 months ago

All of my Wordpress users which have multiple roles/groups within their Additional Capabilities are no longer able to use their Google login to log into the system using the Login With Google app. I am not sure what the issue is, but if I remove the Additional roles/groups, and just leave the default Subscriber role, they immediately can log in. Otherwise, if I leave the Additional groups/roles, when they try to login, they just get a blank white page that never loads and never even errors at all.

Has anything changed which would have caused this to stop working? Does Login with Google only support a single role to work? All of the additional roles are Subscriber based roles with just a few additional permissions. They are duplicated from the Subscriber and they do not lack basic permissions. They only have additional permissions.

bjones-sperofs commented 12 months ago

I have custom Wordpress Roles, such as, Leadership (Read), which is duplicated from Subscriber. This particular role is a supplemental role which has access to certain things. When this role is either the Primary or a 2ndary role to a Primary role of Subscriber, the user cannot log in. They will receive the white page. As soon as I turn the Wordpress role back to Subscriber (and remove any secondary roles), it will work. This recently became an issue, but I do not know why.

mi5t4n commented 12 months ago

@bjones-sperofs Which plugin are you using for the Additional Capabilities?

bjones-sperofs commented 12 months ago

PermissionsPress is the name of the plugin. I'm not sure if it's something that has changed with it or not. But, normally I would just assign a 2nd additional role and then it would work. But, your app and the User Switching plugin are no longer working. I think this is an issue with something changing within the PP plugin.

mi5t4n commented 12 months ago

@bjones-sperofs Is PermissionsPress a Paid plugin? I could not find it in the wordpress.org directory.

bjones-sperofs commented 12 months ago

PublishPress Permissions. Sorry, I had the wrong name. PP Permissions

bjones-sperofs commented 12 months ago

The issue was actually WP Cerber, a popular security plugin. WP Cerber Security was causing the issue. If you are using WP Cerber, please make sure to fix the code manually until they release an update for it. WP Cerber - Thread with Code Fix

mi5t4n commented 12 months ago

@bjones-sperofs Was the issue caused by the WP Cerber plugin and not by the PublishPress Permissions plugin?