I recently received a few requirements for a project related to security of passwords.
If a user attempts to change their password and reuse three of the same characters in sequence, the password change should be rejected.
- Example: ‘!abc1abc4’ is rejected because ‘abc’ is repeated somewhere in the string
If a user attempts to change their password and has in common a 6-character sequence with their user name, the password change should be rejected
- Example: User name = ‘pgriffin’ and the new password is ‘!3riffin#$’, it is rejected because ‘riffin’ is consistant in both
In this post I will detail how I solved it with one microflow and then how I optimized it. If you like to dive into the weeds, read along!