-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#172076080] Added delay between incorrect pin insertion attempts #1711
[#172076080] Added delay between incorrect pin insertion attempts #1711
Conversation
…lay-between-wrong-pin-try
…lay-between-wrong-pin-try
…lay-between-wrong-pin-try
# Conflicts: # ts/IdentificationModal.tsx
Affected stories
Generated by 🚫 dangerJS |
…for too many attempts
wrongCode: Codice errato | ||
remainingAttempts: Ti rimangono {{attempts}} tentativi. | ||
remainingAttemptSingle: Ti rimane {{attempts}} tentativo. | ||
tooManyAttempts: Troppi tentativi di inserimento errati. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
waiting for the updated text to complete this part.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it's ready https://projects.invisionapp.com/share/SCOVFJ2D36K#/screens/413902179
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The text has not changed, it is the same as it was at the beginning ("Hai esaurito i tentativi di inserimento del tuo codice di sblocco" is not true).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fabriziofff are you sure? I check it right now and I see
tooManyAttempts: Troppi tentativi di inserimento errati.
It is also listed here in files changes
I checked it on this commit 9591067
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was talking about the invision file and the texts. In the last sprint review we agreed on a textual review because neither my change "Troppi tentativi di inserimento errati" nor "Hai esaurito i tentativi di inserimento del tuo codice di sblocco" were good and I was waiting for the updated version.
if the review is no longer needed, I can change it immediately with the first version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I completely removed it from my mind!
Since this is a minor change we can update it in another stor/PR
remainingAttempts: Ti rimangono {{attempts}} tentativi. | ||
remainingAttemptSingle: Ti rimane {{attempts}} tentativo. | ||
tooManyAttempts: Troppi tentativi di inserimento errati. | ||
waitMessage: "Riprova tra:" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
waitMessage: "Riprova tra:" | |
waitMessage: "Chiudi l’applicazione o riprova tra:" |
I guess this message could be more appropriate. (sorry for the rollback 😈)
Isn't it?
…lay-between-wrong-pin-try
wrongCode: Codice errato | ||
remainingAttempts: Ti rimangono {{attempts}} tentativi. | ||
remainingAttemptSingle: Ti rimane {{attempts}} tentativo. | ||
tooManyAttempts: Troppi tentativi di inserimento errati. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it's ready https://projects.invisionapp.com/share/SCOVFJ2D36K#/screens/413902179
ts/IdentificationModal.tsx
Outdated
) { | ||
this.maybeTriggerFingerprintRequest({ | ||
updateBiometrySupportProp: | ||
prevProps.appState !== "active" && this.props.appState === "active" | ||
}); | ||
} | ||
|
||
const previousAttempts = prevProps.identificationFailState |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it could have or not a value, could be this statement more expressive?
prevProps.identificationFailState.fold(
undefined,
s => s.remainingAttempts
);
…lay-between-wrong-pin-try
Short description:
This pr changes the behaviour of the identification phase when too many wrong attempts are made.
The new behavior follows the following rules:
Wrong attempts sequence:
Hard logout after last try:
List of changes proposed in this pull request:
IdentificationLockModal
displayed to lock the application during the waiting phase.IdentificationModal
to support the new logic.PinPad
to support the rendering of the "remaining attempts block"identificationFailure
action toIdentification
Actions to model the new action of failure of pin insertion.identification
section, adding two separate sub-sections:progress
containing all the information on the identification "state" andfail
containing all the information related to the fail pin data. Thefail
section is now persisted.ts/store/reducers/identification.ts
to support the new actions and store.ts/sagas/identification.ts
to support the forceLogout action.ts/store/transforms/dateISO8601Tranform.ts
to support the serialization of aDate
for the storeidentification.fail.nextLegalAttempt
. [TODO: in this phase I've just added the rules to serialize the fields as data, in the future could be a good idea to change the file in order to support in a generic and parametric way the serialization of a generic field]How to test:
When a pin is requested (application open or payment) insert a wrong pin multiple time.