Verified Commit 2142b86f authored by Marco Marinello's avatar Marco Marinello
Browse files

Use full name of the user (if available)

parent 1c84b06c
......@@ -20,7 +20,7 @@ def octomon_login(request):
if user is not None:
if user.is_active:
login(request, user)
messages.info(request, _('Welcome, %s!' % username))
messages.info(request, _('Welcome, %s!' % (user.get_full_name() or username)))
if _next:
return redirect(_next)
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment