"Edit Mail Account" - Hide "Password" field on OAuth-based accounts
Overview
Unnecessary field is likely to cause confusion.
Reproduction steps
- Create an OAuth-based email account
- After creating the account, you see the "Edit Mail Account screen:
Current behavior
The field "Password" is displayed. However, it is completely ignored. The existence of an OAuth2 token means that it is never used.
Expected behavior
Don't show the field.
Orgive some kind of indicator that there's an active token which renders the field irrelevant.
Maybe add a link to civicrm/admin/oauth
where one can view/inspect the tokens.