I feel like I'm blind here, but what is the correct declaration for a password field in a gateway settings page?
public static final EncodedStringField Password = new EncodedStringField(META,"Password");
This doesn't make a password type input so the input is in clear text on the page.
Obviously this is used elsewhere, but I can't see the reference used.
That's the right one, you just also need to set the editor source:
static {
Password.getFormMeta()
.setEditorSource(PasswordEditorSource.getSharedInstance());
}
1 Like
I definitely didn't think that was going to put in the confirm password change field and the extra checkbox, but I'm not unhappy that it did.
It's a pretty shite piece of UI. You're only supposed to have to confirm a password when you're defining a new password, not when you're entering the password to an external system.
All gone in 8.3
2 Likes
Beats modifying text files in dodgy windows directories, so there is that…