|
@@ -24,6 +24,7 @@ from tracim.controllers.error import ErrorController
|
24
|
24
|
from tracim.controllers.help import HelpController
|
25
|
25
|
from tracim.controllers.user import UserRestController
|
26
|
26
|
from tracim.controllers.workspace import UserWorkspaceRestController
|
|
27
|
+from tracim.lib.utils import replace_reset_password_templates
|
27
|
28
|
|
28
|
29
|
from tracim.model.data import ContentType
|
29
|
30
|
from tracim.model.serializers import DictLikeClass
|
|
@@ -55,6 +56,10 @@ class RootController(StandardController):
|
55
|
56
|
workspaces = UserWorkspaceRestController()
|
56
|
57
|
user = UserRestController()
|
57
|
58
|
|
|
59
|
+ def _render_response(self, tgl, controller, response):
|
|
60
|
+ replace_reset_password_templates(controller.decoration.engines)
|
|
61
|
+ return super()._render_response(tgl, controller, response)
|
|
62
|
+
|
58
|
63
|
def _before(self, *args, **kw):
|
59
|
64
|
super(RootController, self)._before(args, kw)
|
60
|
65
|
tmpl_context.project_name = "tracim"
|