I think the issue is in lp:canonical-identity-provider /identityprovider/forms.py . The classes for NewAccountForm and ConfirmNewAccountForm do not appear to do any checking of displayname, while the EditAccountForm class does. EditAccountForm.save_account() and .clean_displayname() seem to have the relevant code missing from the other classes.
I think the issue is in lp:canonical-identity-provider /identityprovid er/forms. py . The classes for NewAccountForm and ConfirmNewAccou ntForm do not appear to do any checking of displayname, while the EditAccountForm class does. EditAccountForm .save_account( ) and .clean_ displayname( ) seem to have the relevant code missing from the other classes.
Could someone add this, plus a test for it?