Increase password field length

pull/31/head
Flashfyre 2024-04-03 19:23:48 -04:00
parent 1323093eb5
commit c4e8499a6c
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,8 @@ export abstract class FormModalUiHandler extends ModalUiHandler {
const inputBg = addWindow(this.scene, 0, 0, 80, 16, false, false, 0, 0, WindowVariant.XTHIN);
const input = addTextInputObject(this.scene, 4, -2, 440, 116, TextStyle.TOOLTIP_CONTENT, { type: field.indexOf('Password') > -1 ? 'password' : 'text', maxLength: 16 });
const isPassword = field.includes('Password');
const input = addTextInputObject(this.scene, 4, -2, 440, 116, TextStyle.TOOLTIP_CONTENT, { type: isPassword ? 'password' : 'text', maxLength: isPassword ? 64 : 16 });
input.setOrigin(0, 0);
inputContainer.add(inputBg);