summaryrefslogtreecommitdiff
path: root/common/security.py
diff options
context:
space:
mode:
Diffstat (limited to 'common/security.py')
-rw-r--r--common/security.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/common/security.py b/common/security.py
index 91acb2b..e3ab5de 100644
--- a/common/security.py
+++ b/common/security.py
@@ -1,12 +1,10 @@
-import configparser
-
from passlib.context import CryptContext
-
+from six.moves import configparser
config = configparser.ConfigParser()
config.read("mach2.ini")
-secret_key = config["DEFAULT"]["secret_key"]
+secret_key = config.get("DEFAULT", "secret_key")
pwd_context = CryptContext(
schemes=["pbkdf2_sha256", "des_crypt"],