Skip to content

Commit

Permalink
#417 fixed loading crypt module on windows (it's failing, even withou…
Browse files Browse the repository at this point in the history
…t being invoked)
  • Loading branch information
bugy committed Mar 24, 2021
1 parent ddae8e1 commit f083252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth/auth_htpasswd.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import crypt
import logging
import os

Expand Down Expand Up @@ -108,6 +107,7 @@ def verify(self, username, password):
return hashed_password == expected

elif not os_utils.is_win():
import crypt
hashed_password = crypt.crypt(password, existing_password[:2])
return hashed_password == existing_password

Expand Down

0 comments on commit f083252

Please sign in to comment.