Show More
@@ -291,8 +291,7 b' class AdminUsersView(BaseAppView, DataGr' | |||
|
291 | 291 | h.flash(_("Added new email address `%s` for user account") % email, |
|
292 | 292 | category='success') |
|
293 | 293 | except formencode.Invalid as error: |
|
294 |
|
|
|
295 | h.flash(msg, category='error') | |
|
294 | h.flash(h.escape(error.error_dict['email']), category='error') | |
|
296 | 295 | except Exception: |
|
297 | 296 | log.exception("Exception during email saving") |
|
298 | 297 | h.flash(_('An error occurred during email saving'), |
@@ -253,8 +253,7 b' class MyAccountView(BaseAppView):' | |||
|
253 | 253 | h.flash(_("Added new email address `%s` for user account") % email, |
|
254 | 254 | category='success') |
|
255 | 255 | except formencode.Invalid as error: |
|
256 |
|
|
|
257 | h.flash(msg, category='error') | |
|
256 | h.flash(h.escape(error.error_dict['email']), category='error') | |
|
258 | 257 | except Exception: |
|
259 | 258 | log.exception("Exception in my_account_emails") |
|
260 | 259 | h.flash(_('An error occurred during email saving'), |
General Comments 0
You need to be logged in to leave comments.
Login now