aboutsummaryrefslogtreecommitdiffstats
path: root/servo/forms
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-09-10 14:15:33 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-09-10 14:15:33 +0300
commit46312d1a167d882253d24b0a883fb2378a070e11 (patch)
treef5aff8d2757d4422cbf5321c1fc76ecc0490ab7c /servo/forms
parentbb0ffafe4f040f4e69ecff6624ca73cb3db61bd0 (diff)
downloadServo-46312d1a167d882253d24b0a883fb2378a070e11.tar.gz
Servo-46312d1a167d882253d24b0a883fb2378a070e11.tar.bz2
Servo-46312d1a167d882253d24b0a883fb2378a070e11.zip
Cleanup
Diffstat (limited to 'servo/forms')
-rw-r--r--servo/forms/admin.py7
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']