diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-09-10 14:15:33 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-09-10 14:15:33 +0300 |
commit | 46312d1a167d882253d24b0a883fb2378a070e11 (patch) | |
tree | f5aff8d2757d4422cbf5321c1fc76ecc0490ab7c /servo/forms | |
parent | bb0ffafe4f040f4e69ecff6624ca73cb3db61bd0 (diff) | |
download | Servo-46312d1a167d882253d24b0a883fb2378a070e11.tar.gz Servo-46312d1a167d882253d24b0a883fb2378a070e11.tar.bz2 Servo-46312d1a167d882253d24b0a883fb2378a070e11.zip |
Cleanup
Diffstat (limited to 'servo/forms')
-rw-r--r-- | servo/forms/admin.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/servo/forms/admin.py b/servo/forms/admin.py index b0c7c54..6645317 100644 --- a/servo/forms/admin.py +++ b/servo/forms/admin.py @@ -552,12 +552,9 @@ class SettingsForm(BaseForm): d.write(chunk) if self.cleaned_data.get('gsx_keypass'): - import subprocess + from servo.lib.utils import strip_keypass keypass = self.cleaned_data['gsx_keypass'] - subprocess.call(['openssl', 'rsa', '-passin', - 'pass:' + keypass, - '-in', settings.GSX_KEY, - '-out', settings.GSX_KEY]) + strip_keypass(keypass, settings.GSX_KEY, settings.GSX_KEY) if self.cleaned_data.get('company_logo'): f = self.cleaned_data['company_logo'] |