Think about what you've just said. How insecure is sending the password (hopefully over an HTTPS connection!) to a remote server?
There are secure key-exchange schemes that don't require sending over the raw password, but this isn't an example of one.
The alternative is browser-side encryption of the password before sending but that will get @tptacek rightfully punching you in the face for even mentioning it.