F
F
fantom_ask2020-08-13 10:36:51
Django
fantom_ask, 2020-08-13 10:36:51

How can I check the password for strength?

I want to check password strength for minimum requirements.
Before registering a user
but constantly returning False
print(check_password('pwras333', 'pwras333'))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-08-13
@fantom_ask

It's still common to say "difficulty".
1. If check_password is from here https://docs.djangoproject.com/en/3.1/topics/auth/... then carefully read what they write there
2. And the requirements are set in the settings https://docs.djangoproject.com/en /3.1/topics/auth/... and you can check via https://docs.djangoproject.com/en/3.1/topics/auth/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question