diff --git a/services/forms.py b/services/forms.py index c892563c..c3aa5113 100644 --- a/services/forms.py +++ b/services/forms.py @@ -22,7 +22,7 @@ class FleetFormatterForm(forms.Form): class ServicePasswordForm(forms.Form): - password = forms.CharField(label=_("Password"), required=True) + password = forms.CharField(label=_("Password"), required=True, widget=forms.PasswordInput()) def clean_password(self): password = self.cleaned_data['password'] diff --git a/services/modules/ips4/manager.py b/services/modules/ips4/manager.py index bcda4d44..ffbb8fc5 100644 --- a/services/modules/ips4/manager.py +++ b/services/modules/ips4/manager.py @@ -48,7 +48,7 @@ class Ips4Manager: @staticmethod def _gen_pwhash(password): - return bcrypt.using(ident='2a').encrypt(password.encode('utf-8'), rounds=13) + return bcrypt.using(ident='2y').encrypt(password.encode('utf-8'), rounds=13) @staticmethod def _get_salt(pw_hash): diff --git a/services/modules/market/manager.py b/services/modules/market/manager.py index 5938add2..f2aabea4 100644 --- a/services/modules/market/manager.py +++ b/services/modules/market/manager.py @@ -38,7 +38,7 @@ class MarketManager: @staticmethod def _gen_pwhash(password): - return bcrypt.encrypt(password.encode('utf-8'), rounds=13) + return bcrypt.using(ident='2y').encrypt(password.encode('utf-8'), rounds=13) @staticmethod def _get_salt(pw_hash): diff --git a/stock/templates/registered/service_password.html b/stock/templates/registered/service_password.html index 7ac2ea30..51632898 100644 --- a/stock/templates/registered/service_password.html +++ b/stock/templates/registered/service_password.html @@ -14,7 +14,6 @@
{% trans "Passwords are stored as plain text. Don't re-use another password." %}