I find it hard to believe that the code in the htpasswd module here doesn't already exist in some external python library. Isn't there already some standard method for storing passwords, using a python library, that we can use without having to write our own?
Also, the code that is currently in main.py should probably be mostly within a middleware class.
I find it hard to believe that the code in the htpasswd module here doesn't already exist in some external python library. Isn't there already some standard method for storing passwords, using a python library, that we can use without having to write our own?
Also, the code that is currently in main.py should probably be mostly within a middleware class.