You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just tried out PassphrasePrompt and it looks like this
and appears right after the consent prompt. This is really confusing, how would the user know what to do here? The answer is that they don't, we need some helpful text explaining what is going on. The other problem is that the code completely ignores the passed-in constraints.
To fix the first problem, we need PassphrasePrompt to take title and content and from showPresentationFlow() we should pass in "Enter PIN" or "Enter Passphrase" depending on the value of passphraseConstraints. For content we should put "Enter the PIN for the document" or "Enter the passphrase for the document", depending.
To fix the second problem, if the passphrase/PIN is not fixed length (when constraints.minLength == constraints.maxLength) then add a "Next" button. If not, call onPassphraseEntered() when the user has entered the fixed length.
Also, add a "Cancel" button, make showPassphrase() return String?, and return null when the the prompt is canceled (when the user presses the "Cancel" button)
The text was updated successfully, but these errors were encountered:
Also, I just noticed that showPassphrasePrompt() takes checkWeakPassphrase which doesn't make any sense ... this is a feature of PassphraseEntryField and it's intended to only be used when the user is creating a passphrase. So showPassphrasePrompt() should not take that as a parameter and it should pass checkWeakPassphrase = false to the underlying PassphraseEntryField.
Just tried out
PassphrasePrompt
and it looks like thisand appears right after the consent prompt. This is really confusing, how would the user know what to do here? The answer is that they don't, we need some helpful text explaining what is going on. The other problem is that the code completely ignores the passed-in constraints.
To fix the first problem, we need
PassphrasePrompt
to taketitle
andcontent
and fromshowPresentationFlow()
we should pass in "Enter PIN" or "Enter Passphrase" depending on the value ofpassphraseConstraints
. Forcontent
we should put "Enter the PIN for the document" or "Enter the passphrase for the document", depending.To fix the second problem, if the passphrase/PIN is not fixed length (when
constraints.minLength == constraints.maxLength
) then add a "Next" button. If not, callonPassphraseEntered()
when the user has entered the fixed length.Also, add a "Cancel" button, make
showPassphrase()
returnString?
, and returnnull
when the the prompt is canceled (when the user presses the "Cancel" button)The text was updated successfully, but these errors were encountered: