• Resolved hommealone

    (@hommealone)


    I’m using a plugin – https://ww.wp.xz.cn/plugins/lock-user-account/ – which allows the admin to prevent other users from logging into the site at various times, as needed. It’s very useful in certain circumstances, such as when copying different environments. It doesn’t work in tandem with WPS Hide Login.

    I see in the description of WPS Hide Login that you explain:

    It’s … compatible with any plugin that hooks in the login form. It doesn’t work with plugins or themes that hardcoded wp-login.php.

    The Lock User Account plugin checks, at time of login attempt, to see if the user that is trying to log in is in a list of “locked” users, and displays a custom error message on the login page if they are one of the locked users. The problem is that when they attempt to login, they are redirected to wp-login.php instead of at the custom URL set in WPS Hide Login, which of course throws a 404 error.

    I’ve looked through the code of the Lock User Account plugin to see where it returns to the wp-login.php URL, but I’m not well versed enough in PHP to find where that is happening.

    I’m hoping that you might be able to offer some advise or suggestions. It would be great if I could use both plugins together! Perhaps I can convince the author of the Lock User Account plugin to improve its code, if I can offer a suggestion of how to do that?

    Or perhaps there is some kind of hook that I could add to my functions.php file, to send them to the custom login URL instead of wp-login.php?wpe-login=true when a locked user tries to log in?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support MaximeWPS

    (@seinomedia)

    Hello,

    Thanks for using WPS Hide Login.

    If the other plugin redirects to wp-login.php especially, it won’t be compatible with WPS Hide Login. Try to contact its support to fix that or to transmit a filter to us to make WPS Hide Login compatible.

    Thread Starter hommealone

    (@hommealone)

    Thanks. Sorry, but I’m afraid that I don’t know what you mean when you say…

     …transmit a filter to us to make WPS Hide Login compatible.

    MaximeWPS

    Would this be a filter that I add to my functions.php file? If you could suggest what I should ask the other plugin’s author, I’ll ask them!

    Thread Starter hommealone

    (@hommealone)

    Well, I’ve come up with a better combination. I found the Disable User Login plugin and am using that instead. It plays nicely with WPS Hide Login, and seems to be more actively updated and supported at this point than the Lock User Account plugin.

    https://ww.wp.xz.cn/plugins/disable-user-login/

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Compatibility with Lock User Account plugin.’ is closed to new replies.