• It says on this plugin that you don’t need a password to login on your local computer. This isn’t working for me, but i’m running the site through docker which I think might be the problem

    Is there anyway to get this working?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author loonpwn

    (@loonpwn)

    The no password login feature, out of the box, will only work when WordPress can detect you are connecting from localhost.

    Since docker runs a container in its own network, the plugin will see you coming from an external IP and skip the no password login.

    If you’d like to get it working in docker you’ll need to setup a custom filter that looks like the code below. Note you’ll need to implement the is_dev_environment function yourself.

    add_filter('is-local-host', function() { return is_dev_environment() });

    Thread Starter 4mation tester

    (@harlanw)

    Ok thanks, i’ve tried that and it seems to be working

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Isn’t working in docker’ is closed to new replies.