Avoid showing change of password form if the auth backend doesn't support it.
Avoid showing change of password form if the auth backend doesn't support it.

If an authentication backend has supports_change_password set to False, the
account preferences panel still shows the form to change the password, while it
shouldn't be there.

The problem here is that the is_visible() implementation was located in the
wrong class. Instead of being in ChangePasswordForm, it ended up in
AccountSettingsForm, so that if the auth backend didn't have the ability to
change the password, it would instead prevent the user from changing their
timezone.

Testing Done:

Before: If you use a backend that has supports_change_password as False, your
/account/preferences page still has Authentication tab, which corresponds to
password changing. If you try to change your password, you get an error as
described in the bug. You can also notice that the settings bar went missing
for some reason.

After: If supports_change_password is False for your backend, the
Authentication tab isn't visible, and the Settings tab is back!

I also verified that nothing changed for backends that support password change.

Bugs closed: 3255

Reviewed at https://reviews.reviewboard.org/r/5797/

bkochendorfer/reviewboard,custode/reviewboard,1tush/reviewboard,chipx86/reviewboard,bkochendorfer/reviewboard,reviewboard/reviewboard,KnowNo/reviewboard,chipx86/reviewboard,1tush/reviewboard,davidt/reviewboard,sgallagher/reviewboard,sgallagher/reviewboard,brennie/reviewboard,chipx86/reviewboard,1tush/reviewboard,reviewboard/reviewboard,davidt/reviewboard,beol/reviewboard,custode/reviewboard,1tush/reviewboard,KnowNo/reviewboard,KnowNo/reviewboard,brennie/reviewboard,brennie/reviewboard,beol/reviewboard,davidt/reviewboard,reviewboard/reviewboard,davidt/reviewboard,1tush/reviewboard,1tush/reviewboard,custode/reviewboard,beol/reviewboard,chipx86/reviewboard,1tush/reviewboard,bkochendorfer/reviewboard,sgallagher/reviewboard,1tush/reviewboard,bkochendorfer/reviewboard,1tush/reviewboard,beol/reviewboard,sgallagher/reviewboard,custode/reviewboard,KnowNo/reviewboard,reviewboard/reviewboard,brennie/reviewboard