He isn't actually checking the policy with this code, just using complexity. I suspect that line is left in accidentally when he was checking the policy. With the current code, the PasswordPolicy import is not needed, neither is the declaration of the policy. Hope that helps an is correct?
Repo here: github.com/CarlosIUSalazar/Strong-Passwords-Flask
Helpful video :)
How can we do it without frontend?
You added a line 'checkpoilicy = policy.test(password)' but that was never called. What is it for?
He isn't actually checking the policy with this code, just using complexity. I suspect that line is left in accidentally when he was checking the policy. With the current code, the PasswordPolicy import is not needed, neither is the declaration of the policy. Hope that helps an is correct?