Updated login notification message
authorThierry Florac <thierry.florac@onf.fr>
Fri, 26 Jan 2018 16:30:38 +0100
changeset 27 71fdd41e5f9e
parent 26 dc98b01e5772
child 28 68466fa61001
Updated login notification message
src/pyams_notify/handlers/login.py
--- a/src/pyams_notify/handlers/login.py	Mon Dec 11 15:26:58 2017 +0100
+++ b/src/pyams_notify/handlers/login.py	Fri Jan 26 16:30:38 2018 +0100
@@ -40,12 +40,11 @@
     if request is None:
         return
     translate = request.localizer.translate
-    principal = get_principal(request, event.principal_id)
     notification = Notification(request=request,
                                 action='notify',
                                 category='user.login',
                                 source=event.principal_id,
-                                message=translate(_("User {0} logged in...")).format(principal.title))
+                                message=translate(_("logged in...")))
     notification.send()