How to allow multiple hostnames to login?

I inserted this code to existing plugin.rb and checked.
but result is same.