##// END OF EJS Templates
bugfix, when form is crashing, form_result is unaccesibble
marcink -
r336:871c0dd1 default
parent child Browse files
Show More
@@ -76,8 +76,9 b' class UsersController(BaseController):'
76 defaults=errors.value,
76 defaults=errors.value,
77 encoding="UTF-8")
77 encoding="UTF-8")
78 except Exception:
78 except Exception:
79 h.flash(_('error occured during creation of user %s') \
79
80 % form_result['username'], category='error')
80 h.flash(_('error occured during creation of user') \
81 % request.POST.get('username'), category='error')
81 return redirect(url('users'))
82 return redirect(url('users'))
82
83
83 def new(self, format='html'):
84 def new(self, format='html'):
General Comments 0
You need to be logged in to leave comments. Login now