Changeset - b04afc1298b8
[Not reviewed]
default
0 1 0
Dennis Fink - 10 years ago 2015-03-07 18:48:49
dennis.fink@c3l.lu
Fixed encrypted mail
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
ennstatus/root/functions.py
Show inline comments
 
@@ -29,11 +29,13 @@ def send_membership_mail(form):
 
                current_app.logger.debug('Before encryption')
 
                current_app.logger.debug(body)
 
                if current_app.extensions['gnupg']:
 
                    body = str(current_app.extensions['gnupg'].encrypt(body, recipient,
 
                    encrypted_body = str(current_app.extensions['gnupg'].encrypt(body, recipient,
 
                               always_trust=True))
 
                else:
 
                    encrypted_body = None
 
                current_app.logger.debug('After encryption')
 
                current_app.logger.debug(body)
 
                msg.body = body
 
                msg.body = encrypted_body if encrypted_body else body
 
                conn.send(msg)
 
        flash('Application successfully sended!', 'success')
 
    except KeyError:
0 comments (0 inline, 0 general)