Hi to all
I am developing a channel on which I need to login our users.
The problem see is that the DynamicKeyboard (or any keyboard) does not show asterisks (*) when we are asking for passwords. The password is shown in plain text in the textEditBox.
I have tried to use the keyboardDomain in the DynamicKeyboard and set it to "password" but it still don't work.
All passwords are shown and this is not good for security.
Is there any way to override this behaviour ?
If so, is there any chance to have some code examples or documentation about this matter?
None of the examples I have seen the last days have this problem solved.
Thank you for some help.
StandardKeyboardDialog doesn't have those properties. You should have seen warnings in the debug console. The textEditBox does. Try:
m.loginKeyboard = m.top.findNode("loginKeyboard")
m.loginKeyboard.textEditBox.voiceEnabled = true
m.loginKeyboard.textEditBox.secureLastCharacter = true
m.loginKeyboard.textEditBox.secureMode = true
Is correct that the password field content is shown in plain text?
The best way to find out is dump the component to screen.
<Component: roSGNode:VoiceTextEditBox> =
{
disableVoiceUnderscoreControl: false
isDictating: false
voiceEnabled: false
voiceEntryType: "alphanumeric"
voiceInputRegexFilter: ""
active: true
backgroundUri: ""
centerUnderscores: false
clearOnDownKey: false
cursorPosition: 0
fontSize: -1
fontUri: ""
height: -1
hintText: ""
hintTextColor: -269488282
leadingEllipsis: false
maxTextLength: 75
secureLastCharacter: false
secureMode: false
showUnderscores: false
text: ""
textColor: -269488129
width: 1368
palette: <Component: roInvalid>
childRenderOrder: "last"
clippingRect: <Component: roAssociativeArray>
enableRenderTracking: true
inheritParentOpacity: true
inheritParentTransform: true
muteAudioGuide: false
opacity: 1
renderPass: 0
renderTracking: "none"
rotation: 0
scale: <Component: roArray>
scaleRotateCenter: <Component: roArray>
translation: <Component: roArray>
visible: true
change: <Component: roAssociativeArray>
focusable: true
focusedChild: <Component: roInvalid>
id: ""
}
You want SecureMode and/or SecureLastCharacter set to true.
This doesn't work.
Even with
StandardKeyboardDialog doesn't have those properties. You should have seen warnings in the debug console. The textEditBox does. Try:
m.loginKeyboard = m.top.findNode("loginKeyboard")
m.loginKeyboard.textEditBox.voiceEnabled = true
m.loginKeyboard.textEditBox.secureLastCharacter = true
m.loginKeyboard.textEditBox.secureMode = true
THANK you very very much renojim.
This solved the problem.
I was very disapointed as I could not find an answer and has no clue on how some interface for password could not have some secure entry.
Again, thank you.