summaryrefslogtreecommitdiffstats
path: root/authentic/admin/settings.ptl
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-02-04 23:45:15 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-02-04 23:45:15 (GMT)
commit36211d494a061bb5711b761cbabfbf608d76f4a1 (patch)
treed81c022d0b8c09c35846854b7c243a76b713e6fb /authentic/admin/settings.ptl
parenta22ab799356443f031012bccfdde170c3b4e95c3 (diff)
downloadauthentic-old-36211d494a061bb5711b761cbabfbf608d76f4a1.zip
authentic-old-36211d494a061bb5711b761cbabfbf608d76f4a1.tar.gz
authentic-old-36211d494a061bb5711b761cbabfbf608d76f4a1.tar.bz2
Import RSA key generation logic from qommon/admin/settings.ptl
Diffstat (limited to 'authentic/admin/settings.ptl')
-rw-r--r--authentic/admin/settings.ptl8
1 files changed, 6 insertions, 2 deletions
diff --git a/authentic/admin/settings.ptl b/authentic/admin/settings.ptl
index ad6c110..ee62243 100644
--- a/authentic/admin/settings.ptl
+++ b/authentic/admin/settings.ptl
@@ -1255,8 +1255,12 @@ class SettingsDirectory(Directory):
return redirect('.')
if form.get_widget('generate_rsa') and form.get_widget('generate_rsa').parse():
- self.generate_rsa_keypair()
- return redirect('')
+ result = self.idp_save(form)
+ if result:
+ form.set_error(*result)
+ else:
+ self.generate_rsa_keypair()
+ return redirect('')
if form.is_submitted() and not form.has_errors():
try: