Which you can already do with sth like:
PasswordAuthentication no Match address 10.0.0.0/8 PasswordAuthentication yes Match all
in sshd_config btw